#include <SimplygonSDK.h>
IGeometryDataCollection holds a number of IGeometryData objects. The objects can be looked up by their names (if they have been named through IObject::SetName() ).
Definition at line 8280 of file SimplygonSDK.h.
◆ AddGeometryData()
Adds a IGeometryData object to the collection. The handle refers to the ReGeometryData until it is removed from the collection again. If the ReGeometryData and the pre-existing collection shares a field name they have to be of the same type and tuple size.
- Parameters
-
- Returns
- a handle to the added geometry in the collection
◆ FindGeometryData()
Finds a named object.
- Parameters
-
name | is the name of the geometry object |
- Returns
- the requested IGeometryData object
◆ GetClass()
virtual const char* SimplygonSDK::IGeometryDataCollection::GetClass |
( |
| ) |
|
|
virtual |
GetClass returns the name of the class of the object.
- Returns
- the name of the actual class of the object, as a const char string
Reimplemented from SimplygonSDK::IObjectCollection.
◆ GetGeometryData()
Gets the object the handle is referring to.
- Parameters
-
objhandle | the handle of the geometry data object to fetch |
- Returns
- the requested IGeometryData object
◆ GetNextItemAsGeometryData()
Returns the object of the next item.
- Parameters
-
phandle_rhandleInputDataPtr | is the handle to the geometry object |
◆ IsA()
virtual bool SimplygonSDK::IGeometryDataCollection::IsA |
( |
const char * |
type | ) |
const |
|
virtual |
The IsA function returns true if the object is a or is a descendant of the class named as the type parameter
- Parameters
-
type | is the name of the class to check if the object is, or is a descendant of |
- Returns
- true if the object is of the specified class, false if not
Reimplemented from SimplygonSDK::IObjectCollection.
◆ IsClassA()
static bool SimplygonSDK::IGeometryDataCollection::IsClassA |
( |
const char * |
type | ) |
|
|
inlinestatic |
The IsClassA function returns true if IGeometryDataCollection is a or is a descendant of the class named as the type parameter
- Parameters
-
type | is the name of the class to check if the class is, or is a descendant of |
- Returns
- true if the class is of the specified class, false if not
Definition at line 8301 of file SimplygonSDK.h.
◆ IsGeometryDataInCollection()
virtual bool SimplygonSDK::IGeometryDataCollection::IsGeometryDataInCollection |
( |
IGeometryData * |
pobj | ) |
|
|
pure virtual |
Returns true if the object is in the collection
- Parameters
-
pobj | the GeometryData to look for |
- Returns
- true if the GeometryData is in the collection, otherwise false
◆ RemoveGeometryData()
virtual void SimplygonSDK::IGeometryDataCollection::RemoveGeometryData |
( |
IGeometryData * |
pobj | ) |
|
|
pure virtual |
Removes an object from the collection. Only the first occurrence of the object is removed.
- Parameters
-
◆ SafeCast()
SafeCast makes sure the pointer is of a class that can be cast into a IGeometryDataCollection pointer, and if this is possible, returns the cast pointer.
- Parameters
-
- Returns
- a pointer to the IGeometryDataCollection object, if the cast can be made, and a NULL pointer otherwise
Definition at line 8314 of file SimplygonSDK.h.
The documentation for this class was generated from the following file: