ShapeDefinition

class HPS.ShapeDefinition : HPS.Definition

The ShapeDefinition class is a smart pointer to a database object. It is a handle to a shape defined within a portfolio.

Public Functions

override void Dispose ()
override HPS.Type ObjectType ()

This function returns the type the object, as declared (if the object is derived, this does not give the true type of the derived object).

Return:The declared type of the object in question, which may differ from the true, underlying type.
void Set (HPS.ShapeKit in_kit)

Redefine the shape for this ShapeDefinition.

Param in_kit:The new shader for this ShapeDefinition.
ShapeDefinition ()

The default constructor creates an uninitialized ShapeDefinition object. The Type() function will return Type.None.

ShapeDefinition (HPS.Definition in_that)

This constructor creates a ShapeDefinition object that shares the underlying smart-pointer of the source Definition. The copy will only be successful if the source definition is really an upcast of a shader definition. Otherwise the copy will fail and the resulting ShapeDefinition will be invalid.

Param in_that:The source Definition to copy.
ShapeDefinition (HPS.ShapeDefinition in_that)

The copy constructor creates a ShapeDefinition object that shares the underlying smart-pointer of the source ShapeDefinition.

Param in_that:The source ShapeDefinition to copy.
void Show (out HPS.ShapeKit out_kit)

Shows the shape for this ShapeDefinition.

Param out_kit:The shape for this ShapeDefinition.