Choreonoid  1.5
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
cnoid::SceneCylinderProjector Class Reference

#include <SceneProjector.h>

Inheritance diagram for cnoid::SceneCylinderProjector:
cnoid::SceneProjector

Public Member Functions

 SceneCylinderProjector ()
 
 SceneCylinderProjector (const Vector3 &center, double radius, double height, const Quat &rotation)
 
void setCylinder (const Vector3 &center, double radius, double height, const Quat &rotation)
 
virtual bool project (const SceneWidgetEvent &event, Vector3 &out_projected) const
 
- Public Member Functions inherited from cnoid::SceneProjector
virtual ~SceneProjector ()
 

Public Attributes

 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
 

Protected Member Functions

bool calcUnitCylinderLineIntersection (const Vector3 &lineStart, const Vector3 &lineEnd, Vector3 &out_isectFront, Vector3 &out_isectBack) const
 
bool calcCylinderLineIntersection (const Vector3d &lineStart, const Vector3 &lineEnd, Vector3 &out_isectFront, Vector3 &out_isectBack) const
 

Protected Attributes

Vector3 center_
 
double radius_
 
double height_
 
Quat rotation_
 

Constructor & Destructor Documentation

SceneCylinderProjector::SceneCylinderProjector ( )
SceneCylinderProjector::SceneCylinderProjector ( const Vector3 center,
double  radius,
double  height,
const Quat rotation 
)

Member Function Documentation

bool SceneCylinderProjector::calcCylinderLineIntersection ( const Vector3d &  lineStart,
const Vector3 lineEnd,
Vector3 out_isectFront,
Vector3 out_isectBack 
) const
protected
bool SceneCylinderProjector::calcUnitCylinderLineIntersection ( const Vector3 lineStart,
const Vector3 lineEnd,
Vector3 out_isectFront,
Vector3 out_isectBack 
) const
protected
bool SceneCylinderProjector::project ( const SceneWidgetEvent event,
Vector3 out_projected 
) const
virtual

Implements cnoid::SceneProjector.

void SceneCylinderProjector::setCylinder ( const Vector3 center,
double  radius,
double  height,
const Quat rotation 
)

Member Data Documentation

Vector3 cnoid::SceneCylinderProjector::center_
protected
cnoid::SceneCylinderProjector::EIGEN_MAKE_ALIGNED_OPERATOR_NEW
double cnoid::SceneCylinderProjector::height_
protected
double cnoid::SceneCylinderProjector::radius_
protected
Quat cnoid::SceneCylinderProjector::rotation_
protected

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