#include <AlSurfaceNode.h>
class AlSurfaceNode : public AlDagNode
AlSurfaceNode();
virtual ~AlSurfaceNode();
virtual AlObject* copyWrapper() const;
statusCode create( AlSurface * );
virtual AlObjectType type() const;
virtual AlSurfaceNode* asSurfaceNodePtr();
AlSurface* surface() const;
AlSurface* surface(AlTM&) const;
int curvePrecision() const;
statusCode setCurvePrecision( int precision );
int patchPrecision() const;
statusCode setPatchPrecision( int precision );
Summary
AlSurfaceNode::AlSurfaceNode()
Description
Constructs an AlSurfaceNode wrapper object. AlSurfaceNode::~AlSurfaceNode()
Description
Deletes an AlSurfaceNode wrapper object. AlObject* AlSurfaceNode::copyWrapper() const
Description
This method returns an exact duplicate of this AlSurfaceNode wrapper. statusCode AlSurfaceNode::create( AlSurface *newSurface )
Description
This methods allocates the dag node and geometry required for this object. This method must be called once and only once before any other method and only if the surface has been allocated by the user (i.e., not read in from a wire file). It is an error to call this method twice or if the object has been read in from a wire file. Arguments
< newSurface - the surface to create this surface node for Return codes
sSuccess - the surface node was created AlObjectType AlSurfaceNode::type() const
Description
Returns the class identifier kSurfaceNodeType. AlSurfaceNode* AlSurfaceNode::asSurfaceNodePtr()
Description
This virtual function returns a non-null pointer to itself, indicating that it is safe to cast to an object of this class. AlSurface* AlSurfaceNode::surface() const
Description
Returns a pointer to the surface data structure which can be used to access the geometry of the surface. AlSurface* AlSurfaceNode::surface(AlTM& tm) const
Description
Returns a pointer to the surface data structure that can be used to access the geometry of the surface. The AlTM will be updated with the groupNode's TM if a childNode exists. Arguments
< tm - the AlTM to update with the group node's TM int AlSurfaceNode::curvePrecision() const
Description
This method obtains the curve precision for the surface. -1 is returned if the surface is invalid. statusCode AlSurfaceNode::setCurvePrecision( int precision )
Description
This method sets the curve precision for the surface. Arguments
< precision - The new curve precision (range is 1-129). Return code
sSuccess - the curve precision was set int AlSurfaceNode::patchPrecision() const
Description
Obtains the patch precision for the surface. -1 is returned if the surface is invalid. statusCode AlSurfaceNode::setPatchPrecision( int precision )
Description
Sets the patch precision for the surface. Arguments
< precision - The new patch precision (range is 2-64). Return code
sSuccess - the patch precision was set