Developer Documentation
OVMPropertyVisualizerVector< MeshT, VectorT > Class Template Reference
Inheritance diagram for OVMPropertyVisualizerVector< MeshT, VectorT >:
OVMPropertyVisualizer< MeshT > PropertyVisualizer

Public Member Functions

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

Protected Member Functions

template<typename PropType , typename EntityIterator >
void visualizeVectorAsColorForEntity (PropType prop, EntityIterator e_begin, EntityIterator e_end, bool normalized)
 
void duplicateProperty () override
 Duplicates a property. More...
 
virtual void visualizeFacePropAsStrokes ()
 
virtual void visualizeEdgePropAsStrokes ()
 
virtual void visualizeHalfedgePropAsStrokes ()
 
virtual void visualizeVertexPropAsStrokes ()
 
virtual void visualizeCellPropAsStrokes ()
 
virtual void visualizeHalffacePropAsStrokes ()
 
void visualizeFaceProp (bool _setDrawMode=true) override
 
void visualizeEdgeProp (bool _setDrawMode=true) override
 
void visualizeHalfedgeProp (bool _setDrawMode=true) override
 
void visualizeVertexProp (bool _setDrawMode=true) override
 
void visualizeCellProp (bool _setDrawMode=true) override
 
void visualizeHalffaceProp (bool _setDrawMode=true) override
 
QString getPropertyText (unsigned int index) override
 Returns the value of a property in text form. More...
 
void setCellPropertyFromText (unsigned int index, QString text) override
 
void setFacePropertyFromText (unsigned int index, QString text) override
 
void setHalffacePropertyFromText (unsigned int index, QString text) override
 
void setEdgePropertyFromText (unsigned int index, QString text) override
 
void setHalfedgePropertyFromText (unsigned int index, QString text) override
 
void setVertexPropertyFromText (unsigned int index, QString text) override
 
ACG::Vec3d convert_to_acg (const VectorT &_v)
 
- Protected Member Functions inherited from OVMPropertyVisualizer< MeshT >
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. More...
 
virtual int getEntityCount ()
 Returns the number of entities. More...
 
virtual QString getHeader ()
 Returns the header for saving. More...
 
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

ACG::SceneGraph::LineNodelineNode
 
- Protected Attributes inherited from OVMPropertyVisualizer< MeshT >
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
 
- Protected Slots inherited from OVMPropertyVisualizer< MeshT >
template<typename Type >
void showHistogram (ACG::QtWidgets::QtHistogramWidget *histogramWidget)
 

Detailed Description

template<typename MeshT, typename VectorT>
class OVMPropertyVisualizerVector< MeshT, VectorT >

Definition at line 59 of file OVMPropertyVisualizerVector.hh.

Constructor & Destructor Documentation

◆ OVMPropertyVisualizerVector()

template<typename MeshT , typename VectorT >
OVMPropertyVisualizerVector< MeshT, VectorT >::OVMPropertyVisualizerVector ( MeshT _mesh,
int  objectID,
PropertyInfo  _propertyInfo 
)

Definition at line 52 of file OVMPropertyVisualizerVectorT_impl.hh.

◆ ~OVMPropertyVisualizerVector()

template<typename MeshT , typename VectorT >
virtual OVMPropertyVisualizerVector< MeshT, VectorT >::~OVMPropertyVisualizerVector ( )
inlinevirtual

Definition at line 63 of file OVMPropertyVisualizerVector.hh.

Member Function Documentation

◆ clear()

template<typename MeshT , typename VectorT >
void OVMPropertyVisualizerVector< MeshT, VectorT >::clear ( void  )
overridevirtual

Clears a property.

Reimplemented from OVMPropertyVisualizer< MeshT >.

Definition at line 69 of file OVMPropertyVisualizerVectorT_impl.hh.

◆ convert_to_acg()

template<typename MeshT , typename VectorT >
ACG::Vec3d OVMPropertyVisualizerVector< MeshT, VectorT >::convert_to_acg ( const VectorT &  _v)
inlineprotected

Definition at line 96 of file OVMPropertyVisualizerVector.hh.

◆ duplicateProperty()

template<typename MeshT , typename VectorT >
void OVMPropertyVisualizerVector< MeshT, VectorT >::duplicateProperty
overrideprotectedvirtual

Duplicates a property.

Reimplemented from OVMPropertyVisualizer< MeshT >.

Definition at line 76 of file OVMPropertyVisualizerVectorT_impl.hh.

◆ getPropertyText()

template<typename MeshT , typename VectorT >
QString OVMPropertyVisualizerVector< MeshT, VectorT >::getPropertyText ( unsigned int  i)
overrideprotectedvirtual

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 OVMPropertyVisualizer< MeshT >.

Definition at line 446 of file OVMPropertyVisualizerVectorT_impl.hh.

◆ setCellPropertyFromText()

template<typename MeshT , typename VectorT >
void OVMPropertyVisualizerVector< MeshT, VectorT >::setCellPropertyFromText ( unsigned int  index,
QString  text 
)
overrideprotectedvirtual

Reimplemented from OVMPropertyVisualizer< MeshT >.

Definition at line 453 of file OVMPropertyVisualizerVectorT_impl.hh.

◆ setEdgePropertyFromText()

template<typename MeshT , typename VectorT >
void OVMPropertyVisualizerVector< MeshT, VectorT >::setEdgePropertyFromText ( unsigned int  index,
QString  text 
)
overrideprotectedvirtual

Reimplemented from OVMPropertyVisualizer< MeshT >.

Definition at line 504 of file OVMPropertyVisualizerVectorT_impl.hh.

◆ setFacePropertyFromText()

template<typename MeshT , typename VectorT >
void OVMPropertyVisualizerVector< MeshT, VectorT >::setFacePropertyFromText ( unsigned int  index,
QString  text 
)
overrideprotectedvirtual

Reimplemented from OVMPropertyVisualizer< MeshT >.

Definition at line 470 of file OVMPropertyVisualizerVectorT_impl.hh.

◆ setHalfedgePropertyFromText()

template<typename MeshT , typename VectorT >
void OVMPropertyVisualizerVector< MeshT, VectorT >::setHalfedgePropertyFromText ( unsigned int  index,
QString  text 
)
overrideprotectedvirtual

Reimplemented from OVMPropertyVisualizer< MeshT >.

Definition at line 521 of file OVMPropertyVisualizerVectorT_impl.hh.

◆ setHalffacePropertyFromText()

template<typename MeshT , typename VectorT >
void OVMPropertyVisualizerVector< MeshT, VectorT >::setHalffacePropertyFromText ( unsigned int  index,
QString  text 
)
overrideprotectedvirtual

Reimplemented from OVMPropertyVisualizer< MeshT >.

Definition at line 487 of file OVMPropertyVisualizerVectorT_impl.hh.

◆ setVertexPropertyFromText()

template<typename MeshT , typename VectorT >
void OVMPropertyVisualizerVector< MeshT, VectorT >::setVertexPropertyFromText ( unsigned int  index,
QString  text 
)
overrideprotectedvirtual

Reimplemented from OVMPropertyVisualizer< MeshT >.

Definition at line 538 of file OVMPropertyVisualizerVectorT_impl.hh.

◆ visualizeCellProp()

template<typename MeshT , typename VectorT >
void OVMPropertyVisualizerVector< MeshT, VectorT >::visualizeCellProp ( bool  _setDrawMode = true)
overrideprotectedvirtual

Reimplemented from OVMPropertyVisualizer< MeshT >.

Definition at line 99 of file OVMPropertyVisualizerVectorT_impl.hh.

◆ visualizeCellPropAsStrokes()

template<typename MeshT , typename VectorT >
void OVMPropertyVisualizerVector< MeshT, VectorT >::visualizeCellPropAsStrokes
protectedvirtual

Definition at line 369 of file OVMPropertyVisualizerVectorT_impl.hh.

◆ visualizeEdgeProp()

template<typename MeshT , typename VectorT >
void OVMPropertyVisualizerVector< MeshT, VectorT >::visualizeEdgeProp ( bool  _setDrawMode = true)
overrideprotectedvirtual

Reimplemented from OVMPropertyVisualizer< MeshT >.

Definition at line 163 of file OVMPropertyVisualizerVectorT_impl.hh.

◆ visualizeEdgePropAsStrokes()

template<typename MeshT , typename VectorT >
void OVMPropertyVisualizerVector< MeshT, VectorT >::visualizeEdgePropAsStrokes
protectedvirtual

Definition at line 267 of file OVMPropertyVisualizerVectorT_impl.hh.

◆ visualizeFaceProp()

template<typename MeshT , typename VectorT >
void OVMPropertyVisualizerVector< MeshT, VectorT >::visualizeFaceProp ( bool  _setDrawMode = true)
overrideprotectedvirtual

Reimplemented from OVMPropertyVisualizer< MeshT >.

Definition at line 120 of file OVMPropertyVisualizerVectorT_impl.hh.

◆ visualizeFacePropAsStrokes()

template<typename MeshT , typename VectorT >
void OVMPropertyVisualizerVector< MeshT, VectorT >::visualizeFacePropAsStrokes
protectedvirtual

Definition at line 226 of file OVMPropertyVisualizerVectorT_impl.hh.

◆ visualizeHalfedgeProp()

template<typename MeshT , typename VectorT >
void OVMPropertyVisualizerVector< MeshT, VectorT >::visualizeHalfedgeProp ( bool  _setDrawMode = true)
overrideprotectedvirtual

Reimplemented from OVMPropertyVisualizer< MeshT >.

Definition at line 184 of file OVMPropertyVisualizerVectorT_impl.hh.

◆ visualizeHalfedgePropAsStrokes()

template<typename MeshT , typename VectorT >
void OVMPropertyVisualizerVector< MeshT, VectorT >::visualizeHalfedgePropAsStrokes
protectedvirtual

Definition at line 303 of file OVMPropertyVisualizerVectorT_impl.hh.

◆ visualizeHalffaceProp()

template<typename MeshT , typename VectorT >
void OVMPropertyVisualizerVector< MeshT, VectorT >::visualizeHalffaceProp ( bool  _setDrawMode = true)
overrideprotectedvirtual

Reimplemented from OVMPropertyVisualizer< MeshT >.

Definition at line 142 of file OVMPropertyVisualizerVectorT_impl.hh.

◆ visualizeHalffacePropAsStrokes()

template<typename MeshT , typename VectorT >
void OVMPropertyVisualizerVector< MeshT, VectorT >::visualizeHalffacePropAsStrokes
protectedvirtual

Definition at line 406 of file OVMPropertyVisualizerVectorT_impl.hh.

◆ visualizeVectorAsColorForEntity()

template<typename MeshT , typename VectorT >
template<typename PropType , typename EntityIterator >
void OVMPropertyVisualizerVector< MeshT, VectorT >::visualizeVectorAsColorForEntity ( PropType  prop,
EntityIterator  e_begin,
EntityIterator  e_end,
bool  normalized 
)
protected

Definition at line 83 of file OVMPropertyVisualizerVectorT_impl.hh.

◆ visualizeVertexProp()

template<typename MeshT , typename VectorT >
void OVMPropertyVisualizerVector< MeshT, VectorT >::visualizeVertexProp ( bool  _setDrawMode = true)
overrideprotectedvirtual

Reimplemented from OVMPropertyVisualizer< MeshT >.

Definition at line 205 of file OVMPropertyVisualizerVectorT_impl.hh.

◆ visualizeVertexPropAsStrokes()

template<typename MeshT , typename VectorT >
void OVMPropertyVisualizerVector< MeshT, VectorT >::visualizeVertexPropAsStrokes
protectedvirtual

Definition at line 338 of file OVMPropertyVisualizerVectorT_impl.hh.

Member Data Documentation

◆ lineNode

template<typename MeshT , typename VectorT >
ACG::SceneGraph::LineNode* OVMPropertyVisualizerVector< MeshT, VectorT >::lineNode
protected

Definition at line 98 of file OVMPropertyVisualizerVector.hh.


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