55 int csoVoxelSetAt(
unsigned int index) {
return _csoVoxelSetIds[index]; }
57 bool hasCSOVoxelSetWithId(
int id) {
return (std::find(_csoVoxelSetIds.begin(), _csoVoxelSetIds.end(),
id) != _csoVoxelSetIds.end() ); }
60 void setLabel(
const std::string& label) { _label = label; }
62 const std::string&
label()
const {
return _label; }
65 void setDescription(
const std::string& description) { _description = description; }
67 const std::string&
description()
const {
return _description; }
86 std::vector<int> _csoVoxelSetIds;
90 std::string _description;
#define MLCSO_EXPORT
Defines export symbols for classes, so they can be used in other DLLs.
void setLabel(const std::string &label)
Sets the label of this group.
int uniqueId() const
Returns the unique id of this Group.
bool hasCSOVoxelSetWithId(int id)
Returns true if the given CSOVoxelSet ID exists in this group.
const std::string & description() const
Returns the description of this group.
virtual ~CSOVoxelSetGroup()
Standard destructor.
int numCSOVoxelSet()
Returns the number of associated CSOVoxelSets.
CSOVoxelSetGroup(const CSOVoxelSetGroup &csoVoxelSetGroup)
Copy constructor; the unique id is initialized with 0.
void setVoxelSetList(CSOVoxelSetList *list)
Sets the pointer to the host CSOVoxelSetList.
int csoVoxelSetAt(unsigned int index)
Returns the id of a CSOVoxelSet at the given index.
void addCSOVoxelSetId(int id)
Adds an id of a CSOVoxelSet.
CSOVoxelSetGroup()
Standard constructor. The unique id is initialized with 0.
const std::string & label() const
Returns the label of this group.
void setCSOVoxelSetList(CSOVoxelSetList *csoVoxelSetList)
Sets the pointer to the embracing CSOVoxelSetList.
int voxelSetIdAt(size_t index)
Returns the id of the voxel set at the given index.
CSOVoxelSetList * csoVoxelSetList() const
Returns the pointer to the embracing CSOVoxelSetList.
void setDescription(const std::string &description)
Sets the description of this group.
void setUniqueId(int id)
Set the unique id of this Group.
Target mlrange_cast(Source arg)
Generic version of checked ML casts.