Commit 7b04e00b authored by Max Lyon's avatar Max Lyon
Browse files

add function to retrieve splatCloud object by object id

parent e8041088
......@@ -153,6 +153,18 @@ SplatCloud* splatCloud( BaseObjectData *_object )
SplatCloud* splatCloud( int _objectId )
auto object = splatCloudObject(_objectId);
if (object == nullptr)
return nullptr;
return object->splatCloud();
SplatCloudObject* splatCloudObject( BaseObjectData *_object )
if( !_object )
......@@ -111,6 +111,15 @@ OBJECTTYPEDLLEXPORT
SplatCloud* splatCloud( BaseObjectData *_object );
/** \brief Get a SplatCloud by its id.
* @param _object Id of the object. If the content is a SplatCloud, a
* SplatCloud will be returned. Otherwise a NULL pointer is returned.
SplatCloud* splatCloud( int _objectId );
/** \brief Cast an SplatCloudObject to a SplatCloudObject if possible
* @param _object The object should be of type BaseDataObject. If the content is a SplatCloud, a
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment