|
Developer Documentation
|
#include <ObjectTypes/Plane/PlaneType.hh>
Public Member Functions | |
| void | setPlane (const ACG::Vec3d &_position, const ACG::Vec3d &_xDirection, const ACG::Vec3d &) |
| Set plane. More... | |
| void | setPlane (const ACG::Vec3d &_position, const ACG::Vec3d &_normal) |
| Set plane with given normal and one point. More... | |
| void | setSize (double _xDirection, double _yDirection) |
| Set plane size. More... | |
| void | transform (const ACG::Matrix4x4d &_mat) |
| Transform the plane with given matrix. More... | |
Public Attributes | |
| ACG::Vec3d | position |
| ACG::Vec3d | normal |
| ACG::Vec3d | xDirection |
| ACG::Vec3d | yDirection |
This class defines a simple plane
Definition at line 77 of file PlaneType.hh.
| void Plane::setPlane | ( | const ACG::Vec3d & | _position, |
| const ACG::Vec3d & | _xDirection, | ||
| const ACG::Vec3d & | _yDirection | ||
| ) |
Set plane.
| _position | One point on the plane. Will be used as corner point point for rendering in the PlaneNode |
| _xDirection | Vector pointing in planes x direction |
| _yDirection | Vector pointing in planes y direction |
Definition at line 56 of file PlaneType.cc.
| void Plane::setPlane | ( | const ACG::Vec3d & | _position, |
| const ACG::Vec3d & | _normal | ||
| ) |
Set plane with given normal and one point.
| _position | One point on the plane. Will be used as corner point for rendering in the PlaneNode |
| _normal | Plane normal |
Definition at line 66 of file PlaneType.cc.
| void Plane::setSize | ( | double | _xDirection, |
| double | _yDirection | ||
| ) |
Set plane size.
Scales the plane such that the x and y direction vectors have the given lengths
| _xDirection | Size in x direction |
| _yDirection | Size in y direction |
Definition at line 108 of file PlaneType.cc.
| void Plane::transform | ( | const ACG::Matrix4x4d & | _mat | ) |
Transform the plane with given matrix.
| _mat | Transformation matrix. |
Definition at line 97 of file PlaneType.cc.