|
| | PropertyManager (PolyConnectivity &mesh, const char *propname, bool existing) |
| |
| | PropertyManager (PolyConnectivity &mesh, const char *propname) |
| | Constructor.
|
| |
| | PropertyManager (const Value &initial_value, PolyConnectivity &mesh, const char *propname) |
| | Constructor.
|
| |
| | PropertyManager (const PolyConnectivity &mesh) |
| | Constructor.
|
| |
| | PropertyManager (const Value &initial_value, const PolyConnectivity &mesh) |
| | Constructor.
|
| |
| | PropertyManager (PolyConnectivity &mesh, PROPTYPE property_handle) |
| | Constructor.
|
| |
|
| PropertyManager (const PropertyManager &rhs) |
| |
| PropertyManager | clone () |
| | Create property manager referring to a copy of the current property.
|
| |
|
PropertyManager & | operator= (const PropertyManager &rhs) |
| |
|
void | swap (PropertyManager &rhs) |
| |
|
bool | isValid () const |
| |
|
| operator bool () const |
| |
|
const PROPTYPE & | getRawProperty () const |
| |
|
const std::string & | getName () const |
| |
| PROPTYPE::reference & | operator* () |
| | Get the mesh corresponding to the property.
|
| |
| PROPTYPE::const_reference & | operator* () const |
| | Access the value of the encapsulated mesh property.
|
| |
| PROPTYPE::reference | operator[] (Handle handle) |
| | Enables convenient access to the encapsulated property.
|
| |
| PROPTYPE::const_reference | operator[] (const Handle &handle) const |
| | Enables convenient access to the encapsulated property.
|
| |
| PROPTYPE::reference | operator() (const Handle &handle=Handle()) |
| | Enables convenient access to the encapsulated property.
|
| |
| PROPTYPE::const_reference | operator() (const Handle &handle=Handle()) const |
| | Enables convenient access to the encapsulated property.
|
| |
| template<typename HandleTypeIterator , typename PROP_VALUE > |
| void | set_range (HandleTypeIterator begin, HandleTypeIterator end, const PROP_VALUE &value) |
| | Conveniently set the property for an entire range of values.
|
| |
| template<typename HandleTypeIterator , typename PropertyManager2 , typename HandleTypeIterator2 > |
| void | copy_to (HandleTypeIterator begin, HandleTypeIterator end, PropertyManager2 &dst_propmanager, HandleTypeIterator2 dst_begin, HandleTypeIterator2 dst_end) const |
| | Conveniently transfer the values managed by one property manager onto the values managed by a different property manager.
|
| |
|
template<typename RangeType , typename PropertyManager2 , typename RangeType2 > |
| void | copy_to (const RangeType &range, PropertyManager2 &dst_propmanager, const RangeType2 &dst_range) const |
| |
| void | set_persistent (bool _persistence=true) |
| | Mark whether this property should be stored when mesh is written to a file.
|
| |
|
(Note that these are not member symbols.)
|
| template<typename ElementT , typename T > |
| PropertyManager< typename HandleToPropHandle< ElementT, T >::type > | makeTemporaryProperty (PolyConnectivity &mesh, const char *propname) |
| |
| template<typename ElementT , typename T > |
| PropertyManager< typename HandleToPropHandle< ElementT, T >::type > | makeTemporaryProperty (PolyConnectivity &mesh) |
| | Creates a new property whose lifetime is limited to the current scope.
|
| |
| template<typename ElementT , typename T > |
| bool | hasProperty (const PolyConnectivity &mesh, const char *propname) |
| | Tests whether a property with the given element type, value type, and name is present on the given mesh.
|
| |
| template<typename ElementT , typename T > |
| PropertyManager< typename HandleToPropHandle< ElementT, T >::type > | getProperty (PolyConnectivity &mesh, const char *propname) |
| | Obtains a handle to a named property.
|
| |
| template<typename ElementT , typename T > |
| PropertyManager< typename HandleToPropHandle< ElementT, T >::type > | getOrMakeProperty (PolyConnectivity &mesh, const char *propname) |
| | Obtains a handle to a named property if it exists or creates a new one otherwise.
|
| |
| template<typename PROPTYPE > |
| PropertyManager< PROPTYPE > | makePropertyManagerFromNew (PolyConnectivity &mesh, const char *propname) |
| |
| template<typename PROPTYPE , typename MeshT = int> |
| PropertyManager< PROPTYPE, MeshT > | makePropertyManagerFromExisting (PolyConnectivity &mesh, const char *propname) |
| |
| template<typename PROPTYPE , typename MeshT = int> |
| PropertyManager< PROPTYPE, MeshT > | makePropertyManagerFromExistingOrNew (PolyConnectivity &mesh, const char *propname) |
| |
| template<typename PROPTYPE , typename ITERATOR_TYPE , typename PROP_VALUE > |
| PropertyManager< PROPTYPE > | makePropertyManagerFromExistingOrNew (PolyConnectivity &mesh, const char *propname, const ITERATOR_TYPE &begin, const ITERATOR_TYPE &end, const PROP_VALUE &init_value) |
| | Like the two parameter version of makePropertyManagerFromExistingOrNew() except it initializes the property with the specified value over the specified range if it needs to be created.
|
| |
| template<typename PROPTYPE , typename ITERATOR_RANGE , typename PROP_VALUE > |
| PropertyManager< PROPTYPE > | makePropertyManagerFromExistingOrNew (PolyConnectivity &mesh, const char *propname, const ITERATOR_RANGE &range, const PROP_VALUE &init_value) |
| | Like the two parameter version of makePropertyManagerFromExistingOrNew() except it initializes the property with the specified value over the specified range if it needs to be created.
|
| |
|
template<typename MeshT > |
| PropertyManager< OpenMesh::VPropHandleT< typename MeshT::Point > > | getPointsProperty (MeshT &mesh) |
| | Returns a convenience wrapper around the points property of a mesh.
|
| |
|
template<typename MeshT > |
| ConstPropertyViewer< OpenMesh::VPropHandleT< typename MeshT::Point > > | getPointsProperty (const MeshT &mesh) |
| | Returns a convenience wrapper around the points property of a mesh that only allows const access.
|
| |
template<typename PROPTYPE, typename MeshT = int>
class OpenMesh::PropertyManager< PROPTYPE, MeshT >
This class is intended to manage the lifecycle of properties.
It also defines convenience operators to access the encapsulated property's value.
Note that the second template parameter is depcretated.
{
auto visited = makeTemporaryProperty<VertexHandle, bool>(mesh);
for (auto vh : mesh.vertices()) {
if (!visited[vh]) {
visitComponent(mesh, vh, visited);
}
}
}
Triangle mesh based on the ArrayKernel.
Definition TriMesh_ArrayKernelT.hh:96
template<typename PROPTYPE , typename ITERATOR_RANGE , typename PROP_VALUE >
| PropertyManager< PROPTYPE > makePropertyManagerFromExistingOrNew |
( |
PolyConnectivity & |
mesh, |
|
|
const char * |
propname, |
|
|
const ITERATOR_RANGE & |
range, |
|
|
const PROP_VALUE & |
init_value |
|
) |
| |
|
related |
Like the two parameter version of makePropertyManagerFromExistingOrNew() except it initializes the property with the specified value over the specified range if it needs to be created.
If the property already exists, this function has the exact same effect as the two parameter version.
Creates a non-owning wrapper for a mesh property (no lifecycle management). If the given property does not exist, it is created.
Intended for creating or accessing persistent properties.
template<typename PROPTYPE , typename ITERATOR_TYPE , typename PROP_VALUE >
| PropertyManager< PROPTYPE > makePropertyManagerFromExistingOrNew |
( |
PolyConnectivity & |
mesh, |
|
|
const char * |
propname, |
|
|
const ITERATOR_TYPE & |
begin, |
|
|
const ITERATOR_TYPE & |
end, |
|
|
const PROP_VALUE & |
init_value |
|
) |
| |
|
related |
Like the two parameter version of makePropertyManagerFromExistingOrNew() except it initializes the property with the specified value over the specified range if it needs to be created.
If the property already exists, this function has the exact same effect as the two parameter version.
Creates a non-owning wrapper for a mesh property (no lifecycle management). If the given property does not exist, it is created.
Intended for creating or accessing persistent properties.