Public Member Functions | Public Attributes | List of all members
GlutSquare Struct Reference

Square with center at local origin. More...

#include <SurgSim/Testing/VisualTestCommon/GlutRenderer.h>

Inheritance diagram for GlutSquare:
GlutRenderObject

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 ()
 Draws the square with Glut. More...
 
- Public Member Functions inherited from GlutRenderObject
 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...
 
- Public Attributes inherited from GlutRenderObject
SurgSim::Math::RigidTransform3d pose
 Pose (rotation and translation) of the object. More...
 

Detailed Description

Square with center at local origin.

Constructor & Destructor Documentation

§ GlutSquare()

GlutSquare::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) 
)
inline

Constructor.

Parameters
halfSizeOne half of the edge length of the square, in meters.
colorColor of the square.
planeDirectionXThe unit direction along one of the pairs edges of the square, default is X-axis.
planeDirectionYThe unit direction along the other pair of edges of the square, default is Y-axis.

Member Function Documentation

§ draw()

void GlutSquare::draw ( )
virtual

Draws the square with Glut.

Implements GlutRenderObject.

Member Data Documentation

§ color

SurgSim::Math::Vector3d GlutSquare::color

Color of the square.

§ halfSize

double GlutSquare::halfSize

One half of the edge length of the square, in meters.

§ planeDirectionX

SurgSim::Math::Vector3d GlutSquare::planeDirectionX

The unit direction along one of the pairs edges of the square.

§ planeDirectionY

SurgSim::Math::Vector3d GlutSquare::planeDirectionY

The unit direction along the other pair of edges of the square.


The documentation for this struct was generated from the following files: