Open Inventor Release 2024.1.0
 
Loading...
Searching...
No Matches
SbCylindricalProjection Class Reference

Cylindrical coordinate projection. More...

#include <Inventor/projection/SbCylindricalProjection.h>

+ Inheritance diagram for SbCylindricalProjection:

Public Member Functions

 SbCylindricalProjection ()
 Constructor.
 
 SbCylindricalProjection (SoProjection *node)
 Constructor.
 
virtual ~SbCylindricalProjection ()
 Destructor.
 
virtual void inverse (SbVec3f &point)
 Apply the inverse coordinate to one point.
 
virtual bool getProjectedBoundingBox (SbBox3f &bbox)
 Compute projected bounding box.
 
- Public Member Functions inherited from SbProjection
 SbProjection ()
 Constructor.
 
 SbProjection (SoProjection *node)
 Constructor.
 
 SbProjection (const SbProjection &proj)
 Copy constructor.
 
virtual ~SbProjection ()
 Destructor.
 
virtual void init ()
 Initialisation method.
 
virtual void exit ()
 Exit method.
 
void project (SbVec3f &point)
 Apply the complete computation (matrix, pre-projection, projection, post-projection) to one point.
 
void project (int numPoints, float *points)
 Apply the complete computation to a set of points.
 
void project (int32_t numCoords, const SbVec3f *coords, SbVec3f *projectedCoords)
 Apply the complete computation to a set of coordinates.
 
SoProjectiongetProjectionNode () const
 Return associated projection node.
 
virtual void setParameter (int parameterId, const SbString &parameterString)
 Set string parameter.
 
virtual void setParameter (int parameterId, const float &parameterFloat)
 Set float parameter.
 
void setNumStringParameters (int numParameters)
 Set number of string parameters to use.
 
void setNumFloatParameters (int numParameters)
 Set number of float parameters to use.
 
int getNumStringParameters () const
 Get number of used string parameters.
 
int getNumFloatParameters () const
 Get number of used float parameters.
 
SbBool getParameter (int pos, SbString &parameter) const
 Get string parameter at position pos.
 
SbBool getParameter (int pos, float &parameter) const
 Get float parameter at position pos.
 

Detailed Description

Cylindrical coordinate projection.

This class performs a cylindrical coordinate projection.

Cylindrical coordinates are: radius, theta (angle), height
Radius and height are 3D units and theta is in radians.

The projection of cylindrical coordinates into XYZ space is: x = r * cos(theta) y = r * sin(theta) z = h

SEE ALSO

SbProjection, SoProjection

Definition at line 54 of file SbCylindricalProjection.h.

Constructor & Destructor Documentation

◆ SbCylindricalProjection() [1/2]

SbCylindricalProjection::SbCylindricalProjection ( )

Constructor.

◆ SbCylindricalProjection() [2/2]

SbCylindricalProjection::SbCylindricalProjection ( SoProjection node)

Constructor.

◆ ~SbCylindricalProjection()

virtual SbCylindricalProjection::~SbCylindricalProjection ( )
virtual

Destructor.

Member Function Documentation

◆ getProjectedBoundingBox()

virtual bool SbCylindricalProjection::getProjectedBoundingBox ( SbBox3f bbox)
virtual

Compute projected bounding box.

Reimplemented from SbProjection.

◆ inverse()

virtual void SbCylindricalProjection::inverse ( SbVec3f point)
virtual

Apply the inverse coordinate to one point.

Modifies the given object.

Reimplemented from SbProjection.


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