51#ifndef _SB_CYLINDER_SECTION_PROJECTOR_
52#define _SB_CYLINDER_SECTION_PROJECTOR_
121 float edgeTol = 0.9f,
173 virtual void setupTolerance(
const SbLine *line = NULL );
#define TRUE
Possible value of SbBool.
Class for representing a cylinder.
Cylinder-section projector.
void setTolerance(float edgeTol)
Sets the edge tolerance as a fraction of the radius of the cylinder.
virtual SbRotation getRotation(const SbVec3f &point1, const SbVec3f &point2)
Computes a rotation based on two points on this projector.
virtual SbProjector * copy() const
Returns an instance that is a copy of this instance.
~SbCylinderSectionProjector()
Destructor.
SbCylinderSectionProjector(float edgeTol=0.9f, SbBool orientToEye=TRUE)
Constructor that uses a default cylinder aligned with the Y axis with radius 1.0.
SbCylinderSectionProjector(const SbCylinder &cyl, float edgeTol=0.9f, SbBool orientToEye=TRUE)
Constructor.
SbBool isWithinTolerance(const SbVec3f &point)
Finds whether this point on the cylinder or tolerance plane is within tolerance.
virtual SbVec3f project(const SbVec2f &point)
Applies the projector using the given point, returning the point in three dimensions that it projects...
virtual SbVec3f intersect(const SbLine &line)
Applies the projector using the given line in world coordinates, returning the point in three dimensi...
float getTolerance() const
Gets the edge tolerance as a fraction of the radius of the cylinder.
Base class for representing projectors.
Class for representing a rotation.