50 #include "PropertyModelFactory.hh"
52 #include "MultiObjectPropertyModel.hh"
53 #include "OpenMesh/OMPropertyModel.hh"
55 #ifdef ENABLE_OPENVOLUMEMESH_SUPPORT
56 #include "OpenVolumeMesh/OVMPropertyModel.hh"
59 #ifdef ENABLE_OPENVOLUMEMESH_POLYHEDRAL_SUPPORT
62 #ifdef ENABLE_OPENVOLUMEMESH_HEXAHEDRAL_SUPPORT
85 if (objectID == -13 || objectID == -14 || objectID == -15)
87 if (propertyModelMap.find(objectID) == propertyModelMap.end())
89 propertyModelMap[objectID] = 0;
92 if (propertyModelMap[objectID])
94 delete propertyModelMap[objectID];
95 propertyModelMap[objectID] = 0;
110 return propertyModelMap[objectID];
113 PropertyModelMap::iterator it = propertyModelMap.find(objectID);
114 if (it != propertyModelMap.end())
137 #ifdef ENABLE_OPENVOLUMEMESH_POLYHEDRAL_SUPPORT
141 propertyModel =
new OVMPropertyModel<PolyhedralMesh>(mesh, objectID);
144 #ifdef ENABLE_OPENVOLUMEMESH_HEXAHEDRAL_SUPPORT
148 propertyModel =
new OVMPropertyModel<HexahedralMesh>(mesh, objectID);
156 propertyModelMap.insert(std::pair<int, PropertyModel*>(objectID, propertyModel));
157 return propertyModel;
162 if (propertyModelMap.find(objectID) != propertyModelMap.end())
165 propertyModelMap.erase(objectID);
const QStringList ALL_OBJECTS
Iterable object range.
#define DATA_POLYHEDRAL_MESH
bool getObject(int _identifier, BSplineCurveObject *&_object)
PolyMesh * polyMesh(BaseObjectData *_object)
Get a poly mesh from an object.
const QStringList SOURCE_OBJECTS("source")
Iterable object range.
const QStringList TARGET_OBJECTS("target")
Iterable object range.
TriMesh * triMesh(BaseObjectData *_object)
Get a triangle mesh from an object.
void deleteModel(int objectID)
Deletes the PropertyModel.
PropertyModel * getModel(int objectID)
Returns the PropertyModel.
#define DATA_HEXAHEDRAL_MESH
#define DATA_TRIANGLE_MESH
HexahedralMesh * hexahedralMesh(BaseObjectData *_object)
Get an HexahedralMesh from an object.
PolyhedralMesh * polyhedralMesh(BaseObjectData *_object)
Get an PolyhedralMesh from an object.