Tucano  0.1
A library for rapid prototyping with modern OpenGL and GLSL
Tucano::Shapes::CoordinateAxes Class Reference

Visual representation of a 3D coordinate axes. More...

#include <coordinateaxes.hpp>

Inheritance diagram for Tucano::Shapes::CoordinateAxes:
Tucano::Model

Public Member Functions

 CoordinateAxes ()
 Default Constructor. More...
 
void render (const Tucano::Camera &camera, const Tucano::Camera &light)
 Render camera representation. More...
 
- Public Member Functions inherited from Tucano::Model
 Model (void)
 
Eigen::Vector4f getColor (void)
 Returns the default color of the model. More...
 
void setColor (const Eigen::Vector4f &color)
 Sets the default color of the model. More...
 
virtual Eigen::Vector3f getObjectCenter (void) const
 Returns the center of the axis-aligned bounding box. More...
 
virtual Eigen::Vector3f getCentroid (void) const
 Returns the centroid of the model. More...
 
virtual float getBoundingSphereRadius (void) const
 
Eigen::Affine3f getModelMatrix (void) const
 Returns the model matrix. More...
 
Eigen::Affine3f * modelMatrix (void)
 Returns a pointer to the model matrix. More...
 
void setModelMatrix (const Eigen::Affine3f &m)
 Sets the model matrix. More...
 
float getScale (void) const
 Returns the scale factor for fitting the model inside a unit cube. More...
 
void normalizeModelMatrix (void)
 Normalize model matrix to center and scale model. The model matrix will include a translation to place model's centroid at the origin, and scale the model to fit inside a unit sphere. More...
 
void desnormalizeModelMatrix (void)
 Desnormalize model matrix. More...
 
void resetModelMatrix (void)
 Resets the model matrix. More...
 

Private Attributes

Tucano::Shapes::Arrow arrow
 

Additional Inherited Members

- Protected Attributes inherited from Tucano::Model
Eigen::Affine3f model_matrix
 Model matrix, holds information about the models location and orientation. More...
 
Eigen::Vector3f objectCenter
 Center of the mesh object. More...
 
Eigen::Vector3f centroid
 Object's centroid (different from center of bounding box) More...
 
float radius
 Radius of the mesh bounding sphere. More...
 
float scale
 The normalization scale factor, scales the model matrix to fit the model inside a unit cube. More...
 
Eigen::Vector4f default_color = Eigen::Vector4f (0.7, 0.7, 0.7, 1.0)
 Default color. More...
 

Detailed Description

Visual representation of a 3D coordinate axes.

The actual geometry is handled by the arrow meshes

Constructor & Destructor Documentation

Tucano::Shapes::CoordinateAxes::CoordinateAxes ( )
inline

Default Constructor.

Member Function Documentation

void Tucano::Shapes::CoordinateAxes::render ( const Tucano::Camera camera,
const Tucano::Camera light 
)
inline

Render camera representation.

Todo:
create 3D representation of axes (tubes) and use light

Member Data Documentation

Tucano::Shapes::Arrow Tucano::Shapes::CoordinateAxes::arrow
private

The documentation for this class was generated from the following file: