Developer Documentation
Loading...
Searching...
No Matches
OVMPropertyVisualizer< MeshT > Class Template Referenceabstract
Inheritance diagram for OVMPropertyVisualizer< MeshT >:
PropertyVisualizer OVMPropertyVisualizerBoolean< MeshT > OVMPropertyVisualizerDouble< MeshT > OVMPropertyVisualizerInteger< MeshT, T > OVMPropertyVisualizerMatrix3x3< MeshT > OVMPropertyVisualizerVector< MeshT, VectorT > OVMPropertyVisualizerVectorFieldDifference< MeshT >

Classes

class  CopyProperty
 

Public Member Functions

 OVMPropertyVisualizer (MeshT *_mesh, int objectID, PropertyInfo _propertyInfo)
 
virtual void visualize (bool _setDrawMode, QWidget *_widget)
 Visualizes a property.
 
virtual void removeProperty ()
 Should remove the property.
 
virtual void duplicateProperty ()
 Duplicates a property.
 
virtual void clear ()
 Clears a property.
 
virtual QString getPropertyText (unsigned int index)=0
 Returns the value of a property in text form.
 
unsigned int getClosestPrimitiveId (unsigned int _face, ACG::Vec3d &_hitPoint)
 Returns the ID of the closest primitive.
 
- Public Member Functions inherited from PropertyVisualizer
 PropertyVisualizer (const PropertyInfo &_propertyInfo)
 Constructor.
 
virtual ~PropertyVisualizer ()
 Destructor.
 
virtual QString getName ()
 Returns a beautiful name.
 
virtual QWidget * getWidget ()
 Returns the visualizer's widget.
 
const PropertyInfogetPropertyInfo () const
 Returns the PropertyInfo.
 

Protected Slots

template<typename Type >
void showHistogram (ACG::QtWidgets::QtHistogramWidget *histogramWidget)
 

Protected Member Functions

virtual void visualizeFaceProp (bool _setDrawMode=true)
 
virtual void visualizeEdgeProp (bool _setDrawMode=true)
 
virtual void visualizeHalfedgeProp (bool _setDrawMode=true)
 
virtual void visualizeVertexProp (bool _setDrawMode=true)
 
virtual void visualizeCellProp (bool _setDrawMode=true)
 
virtual void visualizeHalffaceProp (bool _setDrawMode=true)
 
template<typename PropType >
void duplicateProperty_stage1 ()
 
template<typename InnerType >
QString getPropertyText_ (unsigned int index)
 
virtual void setCellPropertyFromText (unsigned int index, QString text)
 
virtual void setFacePropertyFromText (unsigned int index, QString text)
 
virtual void setHalffacePropertyFromText (unsigned int index, QString text)
 
virtual void setEdgePropertyFromText (unsigned int index, QString text)
 
virtual void setHalfedgePropertyFromText (unsigned int index, QString text)
 
virtual void setVertexPropertyFromText (unsigned int index, QString text)
 
virtual void setPropertyFromText (unsigned int index, QString text)
 Returns the value of a property in text form.
 
virtual int getEntityCount ()
 Returns the number of entities.
 
virtual QString getHeader ()
 Returns the header for saving.
 
unsigned int getClosestCellId (unsigned int _face, ACG::Vec3d &_hitPoint)
 
unsigned int getClosestFaceId (unsigned int _face, ACG::Vec3d &_hitPoint)
 
unsigned int getClosestHalffaceId (unsigned int _face, ACG::Vec3d &_hitPoint)
 
unsigned int getClosestEdgeId (unsigned int _face, ACG::Vec3d &_hitPoint)
 
unsigned int getClosestHalfedgeId (unsigned int _face, ACG::Vec3d &_hitPoint)
 
unsigned int getClosestVertexId (unsigned int _face, ACG::Vec3d &_hitPoint)
 
- Protected Member Functions inherited from PropertyVisualizer
virtual std::unique_ptr< ACG::IColorCoderbuildColorCoder ()
 
template<typename PropType , typename Iterable >
void showHistogramT (ACG::QtWidgets::QtHistogramWidget *widget, Iterable data)
 

Protected Attributes

MeshTmesh
 
int mObjectID
 
VolumeMeshDrawModesContainer drawModes
 
- Protected Attributes inherited from PropertyVisualizer
PropertyInfo propertyInfo
 

Additional Inherited Members

- Signals inherited from PropertyVisualizer
void log (Logtype _type, QString _message)
 
void log (QString _message)
 
- Static Public Member Functions inherited from PropertyVisualizer
static QString toStr (bool b)
 
static QString toStr (double d)
 
static QString toStr (int i)
 
static QString toStr (uint8_t i)
 
static QString toStr (unsigned int i)
 
static QString toStr (OpenMesh::Vec3d v)
 
static QString toStr (OpenMesh::Vec2d v)
 
static QString toStr (OpenMesh::Vec2f v)
 
static QString toStr (const ACG::Matrix3x3d &v)
 
static bool strToBool (QString str)
 
static double strToDouble (QString str)
 
static int strToInt (QString str)
 
static unsigned int strToUInt (QString str)
 
static OpenMesh::Vec3d strToVec3d (QString str)
 
static OpenMesh::Vec2d strToVec2d (QString str)
 
static OpenMesh::Vec2f strToVec2f (QString str)
 
template<typename Vec3T >
static Vec3T strToVec3 (QString str)
 
- Public Attributes inherited from PropertyVisualizer
QWidget * widget
 

Detailed Description

template<typename MeshT>
class OVMPropertyVisualizer< MeshT >

Definition at line 61 of file OVMPropertyVisualizer.hh.

Constructor & Destructor Documentation

◆ OVMPropertyVisualizer()

template<typename MeshT >
OVMPropertyVisualizer< MeshT >::OVMPropertyVisualizer ( MeshT _mesh,
int  objectID,
PropertyInfo  _propertyInfo 
)
inline

Definition at line 64 of file OVMPropertyVisualizer.hh.

◆ ~OVMPropertyVisualizer()

template<typename MeshT >
virtual OVMPropertyVisualizer< MeshT >::~OVMPropertyVisualizer ( )
inlinevirtual

Definition at line 71 of file OVMPropertyVisualizer.hh.

Member Function Documentation

◆ clear()

template<typename MeshT >
void OVMPropertyVisualizer< MeshT >::clear ( )
virtual

Clears a property.

Reimplemented from PropertyVisualizer.

Reimplemented in OVMPropertyVisualizerMatrix3x3< MeshT >, and OVMPropertyVisualizerVector< MeshT, VectorT >.

Definition at line 347 of file OVMPropertyVisualizerT_impl.hh.

◆ duplicateProperty()

◆ duplicateProperty_stage1()

template<typename MeshT >
template<typename PropType >
void OVMPropertyVisualizer< MeshT >::duplicateProperty_stage1 ( )
inlineprotected

Definition at line 269 of file OVMPropertyVisualizerT_impl.hh.

◆ getClosestHalfedgeId()

template<typename MeshT >
unsigned int OVMPropertyVisualizer< MeshT >::getClosestHalfedgeId ( unsigned int  _face,
ACG::Vec3d _hitPoint 
)
protected

Definition at line 172 of file OVMPropertyVisualizerT_impl.hh.

◆ getClosestHalffaceId()

template<typename MeshT >
unsigned int OVMPropertyVisualizer< MeshT >::getClosestHalffaceId ( unsigned int  _face,
ACG::Vec3d _hitPoint 
)
protected

Definition at line 153 of file OVMPropertyVisualizerT_impl.hh.

◆ getClosestPrimitiveId()

template<typename MeshT >
unsigned int OVMPropertyVisualizer< MeshT >::getClosestPrimitiveId ( unsigned int  _face,
ACG::Vec3d _hitPoint 
)

Returns the ID of the closest primitive.

Definition at line 144 of file OVMPropertyVisualizerT_impl.hh.

◆ getEntityCount()

template<typename MeshT >
int OVMPropertyVisualizer< MeshT >::getEntityCount ( )
protectedvirtual

Returns the number of entities.

Implements PropertyVisualizer.

Definition at line 114 of file OVMPropertyVisualizerT_impl.hh.

◆ getHeader()

template<typename MeshT >
QString OVMPropertyVisualizer< MeshT >::getHeader ( )
protectedvirtual

Returns the header for saving.

Implements PropertyVisualizer.

Definition at line 131 of file OVMPropertyVisualizerT_impl.hh.

◆ getPropertyText()

template<typename MeshT >
virtual QString OVMPropertyVisualizer< MeshT >::getPropertyText ( unsigned int  i)
pure virtual

Returns the value of a property in text form.

Parameters
iThe id of the entity whose property we want to know.
Returns
The property value in text form.

Implements PropertyVisualizer.

Implemented in OVMPropertyVisualizerBoolean< MeshT >, OVMPropertyVisualizerDouble< MeshT >, OVMPropertyVisualizerInteger< MeshT, T >, OVMPropertyVisualizerMatrix3x3< MeshT >, OVMPropertyVisualizerVector< MeshT, VectorT >, and OVMPropertyVisualizerVectorFieldDifference< MeshT >.

◆ getPropertyText_()

template<typename MeshT >
template<typename InnerType >
QString OVMPropertyVisualizer< MeshT >::getPropertyText_ ( unsigned int  index)
protected

Definition at line 62 of file OVMPropertyVisualizerT_impl.hh.

◆ removeProperty()

template<typename MeshT >
virtual void OVMPropertyVisualizer< MeshT >::removeProperty ( )
inlinevirtual

Should remove the property.

Removing properties is not yet supported by OpenVolumeMesh. Therefor this method only informs the user of this fact via a log message.

Reimplemented from PropertyVisualizer.

Definition at line 82 of file OVMPropertyVisualizer.hh.

◆ setCellPropertyFromText()

template<typename MeshT >
void OVMPropertyVisualizer< MeshT >::setCellPropertyFromText ( unsigned int  index,
QString  text 
)
protectedvirtual

Definition at line 369 of file OVMPropertyVisualizerT_impl.hh.

◆ setEdgePropertyFromText()

template<typename MeshT >
void OVMPropertyVisualizer< MeshT >::setEdgePropertyFromText ( unsigned int  index,
QString  text 
)
protectedvirtual

Definition at line 387 of file OVMPropertyVisualizerT_impl.hh.

◆ setFacePropertyFromText()

template<typename MeshT >
void OVMPropertyVisualizer< MeshT >::setFacePropertyFromText ( unsigned int  index,
QString  text 
)
protectedvirtual

Definition at line 375 of file OVMPropertyVisualizerT_impl.hh.

◆ setHalfedgePropertyFromText()

template<typename MeshT >
void OVMPropertyVisualizer< MeshT >::setHalfedgePropertyFromText ( unsigned int  index,
QString  text 
)
protectedvirtual

Definition at line 393 of file OVMPropertyVisualizerT_impl.hh.

◆ setHalffacePropertyFromText()

template<typename MeshT >
void OVMPropertyVisualizer< MeshT >::setHalffacePropertyFromText ( unsigned int  index,
QString  text 
)
protectedvirtual

Definition at line 381 of file OVMPropertyVisualizerT_impl.hh.

◆ setPropertyFromText()

template<typename MeshT >
void OVMPropertyVisualizer< MeshT >::setPropertyFromText ( unsigned int  index,
QString  text 
)
protectedvirtual

Returns the value of a property in text form.

Parameters
indexThe id of the entity whose property should be set.
textThe value in text form.

This method sets the porperty of a given entity by transforming the text into the correct type. This is used when a property is loaded from a file.

Implements PropertyVisualizer.

Definition at line 97 of file OVMPropertyVisualizerT_impl.hh.

◆ setVertexPropertyFromText()

template<typename MeshT >
void OVMPropertyVisualizer< MeshT >::setVertexPropertyFromText ( unsigned int  index,
QString  text 
)
protectedvirtual

Definition at line 399 of file OVMPropertyVisualizerT_impl.hh.

◆ showHistogram

template<typename MeshT >
template<typename Type >
void OVMPropertyVisualizer< MeshT >::showHistogram ( ACG::QtWidgets::QtHistogramWidget histogramWidget)
protectedslot

Definition at line 406 of file OVMPropertyVisualizerT_impl.hh.

◆ visualize()

template<typename MeshT >
void OVMPropertyVisualizer< MeshT >::visualize ( bool  _setDrawMode,
QWidget *  _widget 
)
virtual

Visualizes a property.

Reimplemented from PropertyVisualizer.

Definition at line 203 of file OVMPropertyVisualizerT_impl.hh.

◆ visualizeCellProp()

template<typename MeshT >
void OVMPropertyVisualizer< MeshT >::visualizeCellProp ( bool  _setDrawMode = true)
protectedvirtual

Definition at line 256 of file OVMPropertyVisualizerT_impl.hh.

◆ visualizeEdgeProp()

template<typename MeshT >
void OVMPropertyVisualizer< MeshT >::visualizeEdgeProp ( bool  _setDrawMode = true)
protectedvirtual

Definition at line 238 of file OVMPropertyVisualizerT_impl.hh.

◆ visualizeFaceProp()

template<typename MeshT >
void OVMPropertyVisualizer< MeshT >::visualizeFaceProp ( bool  _setDrawMode = true)
protectedvirtual

Definition at line 232 of file OVMPropertyVisualizerT_impl.hh.

◆ visualizeHalfedgeProp()

template<typename MeshT >
void OVMPropertyVisualizer< MeshT >::visualizeHalfedgeProp ( bool  _setDrawMode = true)
protectedvirtual

Definition at line 244 of file OVMPropertyVisualizerT_impl.hh.

◆ visualizeHalffaceProp()

template<typename MeshT >
void OVMPropertyVisualizer< MeshT >::visualizeHalffaceProp ( bool  _setDrawMode = true)
protectedvirtual

Definition at line 262 of file OVMPropertyVisualizerT_impl.hh.

◆ visualizeVertexProp()

template<typename MeshT >
void OVMPropertyVisualizer< MeshT >::visualizeVertexProp ( bool  _setDrawMode = true)
protectedvirtual

Definition at line 250 of file OVMPropertyVisualizerT_impl.hh.

Member Data Documentation

◆ drawModes

template<typename MeshT >
VolumeMeshDrawModesContainer OVMPropertyVisualizer< MeshT >::drawModes
protected

Definition at line 137 of file OVMPropertyVisualizer.hh.

◆ mesh

template<typename MeshT >
MeshT* OVMPropertyVisualizer< MeshT >::mesh
protected

Definition at line 100 of file OVMPropertyVisualizer.hh.

◆ mObjectID

template<typename MeshT >
int OVMPropertyVisualizer< MeshT >::mObjectID
protected

Definition at line 135 of file OVMPropertyVisualizer.hh.


The documentation for this class was generated from the following files: