#include <AlPolysetVertex.h>
class AlPolysetVertex : public AlObject , public AlClusterable , public AlAnimatable
, public AlSettable , public AlPickable
AlPolysetVertex();
virtual ~AlPolysetVertex();
virtual AlObject* copyWrapper() const;
virtual AlAnimatable* asAnimatablePtr();
virtual AlSettable* asSettablePtr();
virtual AlClusterable* asClusterablePtr();
virtual AlPickable* asPickablePtr();
virtual AlObjectType type() const;
virtual AlPolysetVertex* asPolysetVertexPtr();
statusCode worldPosition( double&, double&, double& )const;
statusCode affectedPosition( AlTM&, double&, double&, double& )const;
statusCode unaffectedPosition( double&, double&, double& )const;
statusCode setWorldPosition( double, double, double, boolean );
statusCode setWorldPosition( double, double, double, AlTM );
statusCode setUnaffectedPosition( double, double, double );
statusCode normal( double&, double&, double& ) const;
statusCode setNormal( double, double, double );
statusCode freezeNormalFlag( boolean& ) const;
statusCode setFreezeNormalFlag( boolean );
statusCode st( double&, double& ) const;
statusCode setSt( double, double );
statusCode color( double&, double&, double&, double& ) const;
statusCode setColor( double, double, double, double );
int index() const;
AlPolyset* polyset() const;
statusCode blindData( int, long&, const char *& );
statusCode setBlindData( int, long, const char * );
statusCode removeBlindData( int );
statusCode doUpdates( boolean newState = TRUE );
An AlPolysetVertex defines a location in space for a corner of an AlPolygon.
> double& y - the world position in the y direction
> double& z - the world position in the z direction
sFailure - the vertex is inactive.
sInvalidObject - the vertex is invalid
> double& x - the affected position in the x direction
> double& y - the affected position in the y direction
> double& z - the affected position in the z direction
sFailure - the vertex is inactive.
sInvalidObject - the vertex is invalid
> double& y - the local y position
> double& z - the local z position
sFailure - the vertex is inactive.
sInvalidObject - the vertex is invalid
statusCode AlPolysetVertex::setWorldPosition( double x, double y, double z, boolean includeWorld )
Description
Sets the world position of the vertex. This includes vertices in clusters. Arguments
> double x - the unaffected position in the x direction Return code
sSuccess - affected position was set statusCode AlPolysetVertex::setWorldPosition( double x, double y, double z, AlTM tm )
Description
Sets the world position of the vertex. This includes vertices within clusters. Note that this method uses the inverse of the transformation matrix that is passed in, so that the calling routine does not need to generate it. Arguments
> double x - the unaffected position in the x direction Return code
sSuccess - affected position was set statusCode AlPolysetVertex::setUnaffectedPosition( double x, double y, double z )
Description
Sets the unaffected position of the vertex. Arguments
> double x - the unaffected position in the x direction Return code
sSuccess - unaffected position was set statusCode AlPolysetVertex::normal( double& x, double& y, double& z ) const
Description
Get the normal for the vertex. Arguments
> double &x, &y, &z - retrieved 3D vector for the normal Return code
sSuccess - The normal was retrieved from the vertex. statusCode AlPolysetVertex::setNormal( double x, double y, double z )
Description
Set the normal for the vertex. Arguments
< double x, y, z - 3D vector for the normal Return code
sSuccess - The normal was retrieved from the polygon. statusCode AlPolysetVertex::freezeNormalFlag( boolean& freezeNormal ) const
Description
Return the value of the flag that determines whether or not the renderer recalculates vertex normals. Arguments
> freezeNormal - the returned state of the freeze flag Return codes
sSuccess - The flag was properly returned. statusCode AlPolysetVertex::setFreezeNormalFlag( boolean freezeNormal )
Description
Set the flag that governs whether or not vertex normals are recalculated by the renderer. If the freezeNormal flag is set to TRUE, the renderer will NOT recalculate the vertex normal. If it is set to FALSE, the renderer will recalculate the vertex normal. Arguments
< freezeNormal - flag state to set. Return codes
sSuccess - The flag was properly set. statusCode AlPolysetVertex::st( double& s, double& t ) const
Description
Get the ST coordinates for the vertex. S and T coordinates for a polyset vertex are typically used for texture coordinates, and may be generated based on the parametrization of the surface. Arguments
> s - the s coordinate to retrieve Return code
sSuccess - The st coordinates were retrieved from the vertex. statusCode AlPolysetVertex::setSt( double s, double t )
Description
Set the ST coordinates for the vertex. S and T coordinates for a polyset vertex are typically used for texture coordinates, and may be generated based on the parameterization of the surface. Arguments
< s, t - the s,t parametric coordinate for the vertex Return code
sSuccess - The st coordinates were set in the polygon. statusCode AlPolysetVertex::color( double& r, double& g, double &b, double &a ) const
Description
Gets the color information for a vertex. Arguments
> double &r, &g, &b, &a - the retrieved color information Return code
sSuccess - The color was retrieved from the vertex. statusCode AlPolysetVertex::setColor( double r, double g, double b, double a )
Description
Sets the color information for a vertex. Arguments
< double r, g, b, a - the red, green, blue, alpha information to set Return code
sSuccess - The color was set in the polygon. int AlPolysetVertex::index() const
Description
Return the index of this vertex in the polyset. On errors -1 is returned. statusCode AlPolysetVertex::blindData( int user_type, long& size, const char *& data )
Description
Obtains the size and address of a block of data associated with the object. If there is no data, then the size will be zero and the address of the data is NULL. User_types between 0 and 11999 are reserved. If you would like to reserve a block of "user_types" please contact us. Arguments
< type - user type of the data desired. Return codes
sSuccess - blind data retrieved statusCode AlPolysetVertex::setBlindData( int user_type, long size, const char * data )
Description
Associates a block of data with the object. If a block of data is already associated with this object and this user_type, the old block is replaced by a reference to the new block. The old block of data is not deleted. Arguments
< user_type - user type of the blind data desired. Return codes
sSuccess - everything is okay. statusCode AlPolysetVertex::removeBlindData( int user_type )
Description
Removes the block of data of the given type from the object. Note that the user is still responsible for the memory associated with this block of data. Arguments
< user_type - user type of the blind desired. Return codes
sSuccess - everthing is okay