1 #include <GLviewer/Scenes/SceneCoordinateFrame.hh>
2 #include <GLviewer/GLProjectionParametersInterface.hh>
23 for (
unsigned int i = 0; i < 3; i++) {
24 axisX_[i] = orientation[i][0] * scale;
25 axisY_[i] = orientation[i][1] * scale;
26 axisZ_[i] = orientation[i][2] * scale;
32 const double extent = fabs(scale) * sqrt(3.0);
33 for (
unsigned int i = 0; i < 3; i++) {
49 glPushAttrib(GL_LIGHTING);
50 glDisable(GL_LIGHTING);
54 glColor3f(1.0f, 0.0f, 0.0f);
57 glColor3f(0.0f, 1.0f, 0.0f);
60 glColor3f(0.0f, 0.0f, 1.0f);
67 glGetFloatv(GL_POINT_SIZE, &pointSize);
70 glColor3f(0.0f, 0.0f, 0.0f);
72 glColor3f(1.0f, 0.0f, 0.0f);
74 glColor3f(0.0f, 1.0f, 0.0f);
76 glColor3f(0.0f, 0.0f, 1.0f);
79 glPointSize(pointSize);
void Set(const T *pv)
copy the array of vectorsize beginning at *T to this->data_
BIAS::Vector3< double > boundingBoxMin_
virtual void Draw()
Implementation of the SceneBase Draw method.
BIAS::Vector3< double > boundingBoxMax_
SceneCoordinateFrame(const BIAS::Vector3< double > &origin=BIAS::Vector3< double >(0, 0, 0), const BIAS::RMatrix &orientation=BIAS::RMatrix(BIAS::MatrixIdentity), const double scale=1.0)
Create a coordinate frame with the given origin, orientation, and scale.
void SetCoordinateFrame(const BIAS::Vector3< double > &origin, const BIAS::RMatrix &orientation, const double scale=1.0)
Set origin, orientation and scale of coordinate frame.
virtual void GetBoundingBox(BIAS::Vector3< double > &minVal, BIAS::Vector3< double > &maxVal)
Implementation of the SceneBase GetBoundingBox method.
BIAS::Vector3< float > axisZ_
BIAS::Vector3< float > axisY_
BIAS::Vector3< float > axisX_
BIAS::Vector3< float > origin_