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() [1/2]

SceneCylinderProjector::SceneCylinderProjector ( )

◆ SceneCylinderProjector() [2/2]

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

Member Function Documentation

◆ calcCylinderLineIntersection()

bool SceneCylinderProjector::calcCylinderLineIntersection ( const Vector3d &  lineStart,
const Vector3 lineEnd,
Vector3 out_isectFront,
Vector3 out_isectBack 
) const
protected

◆ calcUnitCylinderLineIntersection()

bool SceneCylinderProjector::calcUnitCylinderLineIntersection ( const Vector3 lineStart,
const Vector3 lineEnd,
Vector3 out_isectFront,
Vector3 out_isectBack 
) const
protected

◆ project()

bool SceneCylinderProjector::project ( const SceneWidgetEvent event,
Vector3 out_projected 
) const
virtual

Implements cnoid::SceneProjector.

◆ setCylinder()

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

Member Data Documentation

◆ center_

Vector3 cnoid::SceneCylinderProjector::center_
protected

◆ EIGEN_MAKE_ALIGNED_OPERATOR_NEW

cnoid::SceneCylinderProjector::EIGEN_MAKE_ALIGNED_OPERATOR_NEW

◆ height_

double cnoid::SceneCylinderProjector::height_
protected

◆ radius_

double cnoid::SceneCylinderProjector::radius_
protected

◆ rotation_

Quat cnoid::SceneCylinderProjector::rotation_
protected

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