![]() |
Square with center at local origin. More...
#include <SurgSim/Testing/VisualTestCommon/GlutRenderer.h>
Public Member Functions | |
GlutSquare (double halfSize, const SurgSim::Math::Vector3d &color, const SurgSim::Math::Vector3d &planeDirectionX=SurgSim::Math::Vector3d(1.0, 0.0, 0.0), const SurgSim::Math::Vector3d &planeDirectionY=SurgSim::Math::Vector3d(0.0, 1.0, 0.0)) | |
Constructor. More... | |
virtual void | draw () const |
Draws the square with Glut. More... | |
![]() | |
GlutRenderObject () | |
Constructor initializes pose as identity (no rotation or translation) More... | |
virtual | ~GlutRenderObject () |
Public Attributes | |
SurgSim::Math::Vector3d | planeDirectionX |
The unit direction along one of the pairs edges of the square. More... | |
SurgSim::Math::Vector3d | planeDirectionY |
The unit direction along the other pair of edges of the square. More... | |
double | halfSize |
One half of the edge length of the square, in meters. More... | |
SurgSim::Math::Vector3d | color |
Color of the square. More... | |
![]() | |
SurgSim::Math::RigidTransform3d | pose |
Pose (rotation and translation) of the object. More... | |
Square with center at local origin.
|
inline |
Constructor.
halfSize | One half of the edge length of the square, in meters. |
color | Color of the square. |
planeDirectionX | The unit direction along one of the pairs edges of the square, default is X-axis. |
planeDirectionY | The unit direction along the other pair of edges of the square, default is Y-axis. |
|
virtual |
Draws the square with Glut.
Implements GlutRenderObject.
SurgSim::Math::Vector3d GlutSquare::color |
Color of the square.
double GlutSquare::halfSize |
One half of the edge length of the square, in meters.
SurgSim::Math::Vector3d GlutSquare::planeDirectionX |
The unit direction along one of the pairs edges of the square.
SurgSim::Math::Vector3d GlutSquare::planeDirectionY |
The unit direction along the other pair of edges of the square.