24#ifndef _SB_PROJECTION_
25#define _SB_PROJECTION_
30#include <Inventor/STL/vector>
33#pragma warning( push )
34#pragma warning( disable: 4251 )
37#define NUM_MAX_PARAMS 256
38#define MAX_PARAM_LENGTH 256
171 {
return m_projection;}
181 virtual void setParameter(
int parameterId,
const float ¶meterFloat );
220 virtual void apply(
SbVec3f &point);
225 virtual void applyPreProjection(
SbVec3f &point );
230 virtual void applyPostProjection(
SbVec3f &point );
244 virtual void internalSetParameter(
int parameterId,
const float ¶meterString,
SbBool notifyNode =
TRUE,
SbBool callInit =
TRUE);
250 virtual void internalSetParameterIn(
int parameterId,
const SbString ¶meterString,
SbBool notifyNode =
TRUE,
SbBool callInit =
TRUE);
258 void initParameters();
261 void afterSettingParameters(
SbBool notifyNode,
SbBool callInit );
267 int m_numStringParams;
273 int m_numStringParamsIn;
276 std::vector< float > m_floatParameters;
279 void applyMatrix(
SbVec3f &point);
281 static const double deg2rad;
282 static const double rad2deg;
290inline void SbProjection::apply(
SbVec3f &)
296inline void SbProjection::applyPreProjection(
SbVec3f &)
299inline void SbProjection::applyPostProjection(
SbVec3f &)
306#pragma warning( pop )
#define SoEXTENDER_Documented
#define TRUE
Possible value of SbBool.
Base class for coordinate projection classes.
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.
SbProjection()
Constructor.
virtual void exit()
Exit method.
void project(SbVec3f &point)
Apply the complete computation (matrix, pre-projection, projection, post-projection) to one point.
virtual void inverse(SbVec3f &point)
Apply the inverse coordinate to one point.
void setNumFloatParameters(int numParameters)
Set number of float parameters to use.
virtual void setParameter(int parameterId, const SbString ¶meterString)
Set string parameter.
virtual ~SbProjection()
Destructor.
void setNumStringParameters(int numParameters)
Set number of string parameters to use.
SbBool getParameter(int pos, float ¶meter) const
Get float parameter at position pos.
virtual void setParameter(int parameterId, const float ¶meterFloat)
Set float parameter.
SbProjection(SoProjection *node)
Constructor.
SbProjection(const SbProjection &proj)
Copy constructor.
int getNumFloatParameters() const
Get number of used float parameters.
virtual bool getProjectedBoundingBox(SbBox3f &bbox)
Return projected bounding box if available.
SoProjection * getProjectionNode() const
Return associated projection node.
SbBool getParameter(int pos, SbString ¶meter) const
Get string parameter at position pos.
virtual void init()
Initialisation method.
int getNumStringParameters() const
Get number of used string parameters.
Class for smart character strings.
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Coordinate proje...