Simplygon C++ API  8.3.35800.0
SimplygonSDK::IGeometryDataCollection Class Referenceabstract

#include <SimplygonSDK.h>

Inheritance diagram for SimplygonSDK::IGeometryDataCollection:
SimplygonSDK::IObjectCollection SimplygonSDK::IObject

Public Member Functions

virtual rhandle AddGeometryData (IGeometryData *obj)=0
 
virtual CountedPointer< IGeometryDataFindGeometryData (const char *name)=0
 
virtual const char * GetClass ()
 
virtual CountedPointer< IGeometryDataGetGeometryData (rhandle objhandle)=0
 
virtual CountedPointer< IGeometryDataGetNextItemAsGeometryData (rhandle *phandle_rhandleInputDataPtr)=0
 
virtual bool IsA (const char *type) const
 
virtual bool IsGeometryDataInCollection (IGeometryData *pobj)=0
 
virtual void RemoveGeometryData (IGeometryData *pobj)=0
 
- Public Member Functions inherited from SimplygonSDK::IObjectCollection
virtual rhandle AddObject (IObject *obj)=0
 
virtual rhandle AddObjectSorted (IObject *obj, bool ascending)=0
 
virtual CountedPointer< IObjectFindObject (const char *name)=0
 
virtual rhandle GetFirstItem ()=0
 
virtual rhandle GetItem (unsigned int index)=0
 
virtual CountedPointer< IObjectGetItemAsObject (unsigned int index)=0
 
virtual unsigned int GetItemCount ()=0
 
virtual CountedPointer< IObjectGetItemsObject (rhandle objhandle)=0
 
virtual rhandle GetNextItem (rhandle objhandle)=0
 
virtual bool IsItemInCollection (rhandle objhandle)=0
 
virtual bool IsObjectInCollection (IObject *pobj)=0
 
virtual void RemoveAllItems ()=0
 
virtual rhandle RemoveItem (rhandle objhandle)=0
 
virtual void RemoveObject (IObject *pobj)=0
 
- Public Member Functions inherited from SimplygonSDK::IObject
virtual rid AddObserver (robserver *Observer, rid EventId)=0
 
virtual void AddRef ()=0
 
virtual rstring GetName ()=0
 
virtual void * GetUserComponentArea (rid userid)=0
 
virtual void PrintInfo ()=0
 
virtual void Release ()=0
 
virtual void RemoveObserver (rid ObserverId)=0
 
virtual void SetName (const char *Name)=0
 

Static Public Member Functions

static bool IsClassA (const char *type)
 
static IGeometryDataCollectionSafeCast (IObject *ptr)
 
- Static Public Member Functions inherited from SimplygonSDK::IObjectCollection
static bool IsClassA (const char *type)
 
static IObjectCollectionSafeCast (IObject *ptr)
 
- Static Public Member Functions inherited from SimplygonSDK::IObject
static bool IsClassA (const char *type)
 
static IObjectSafeCast (IObject *ptr)
 

Detailed Description

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.

Member Function Documentation

◆ AddGeometryData()

virtual rhandle SimplygonSDK::IGeometryDataCollection::AddGeometryData ( IGeometryData obj)
pure virtual

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
objis the IGeometryData to add
Returns
a handle to the added geometry in the collection

◆ FindGeometryData()

virtual CountedPointer<IGeometryData> SimplygonSDK::IGeometryDataCollection::FindGeometryData ( const char *  name)
pure virtual

Finds a named object.

Parameters
nameis 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()

virtual CountedPointer<IGeometryData> SimplygonSDK::IGeometryDataCollection::GetGeometryData ( rhandle  objhandle)
pure virtual

Gets the object the handle is referring to.

Parameters
objhandlethe handle of the geometry data object to fetch
Returns
the requested IGeometryData object

◆ GetNextItemAsGeometryData()

virtual CountedPointer<IGeometryData> SimplygonSDK::IGeometryDataCollection::GetNextItemAsGeometryData ( rhandle phandle_rhandleInputDataPtr)
pure virtual

Returns the object of the next item.

Parameters
phandle_rhandleInputDataPtris 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
typeis 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
typeis 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
pobjthe 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
pobjthe IGeometryData to remove from the collection

◆ SafeCast()

static IGeometryDataCollection* SimplygonSDK::IGeometryDataCollection::SafeCast ( IObject ptr)
inlinestatic

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
ptris the pointer to be cast into a IGeometryDataCollection pointer
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: