Developer Documentation
OMPropertyVisualizerInteger< MeshT, T > Class Template Reference
Inheritance diagram for OMPropertyVisualizerInteger< MeshT, T >:
OMPropertyVisualizer< MeshT > PropertyVisualizer

Public Member Functions

 OMPropertyVisualizerInteger (MeshT *_mesh, int _objectID, const PropertyInfo &_propertyInfo, bool isUnsigned)
 
- Public Member Functions inherited from OMPropertyVisualizer< MeshT >
 OMPropertyVisualizer (MeshT *_mesh, int objectID, const PropertyInfo &_propertyInfo)
 
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. More...
 
unsigned int getClosestPrimitiveId (unsigned int _face, ACG::Vec3d &_hitPoint)
 Returns the ID of the closest primitive. More...
 
virtual QString getPropertyText (unsigned int index)
 Returns the value of a property in text form. More...
 
void setDrawMode (const ACG::SceneGraph::DrawModes::DrawMode &_mode)
 
- 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

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 removeProperty () override
 Removes the property. More...
 
void duplicateProperty () override
 Duplicates the property. More...
 
virtual T getValue (OpenMesh::FPropHandleT< T > prop, typename MeshT::FaceIter iter)
 
virtual T getValue (OpenMesh::EPropHandleT< T > prop, typename MeshT::EdgeIter iter)
 
virtual T getValue (OpenMesh::HPropHandleT< T > prop, typename MeshT::HalfedgeIter iter)
 
virtual T getValue (OpenMesh::VPropHandleT< T > prop, typename MeshT::VertexIter iter)
 
QString getPropertyText (unsigned int index) override
 Returns the value of a property in text form. More...
 
void setFacePropertyFromText (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
 
int strToT (QString str, int)
 
unsigned int strToT (QString str, unsigned int)
 
QString TToStr (int i)
 
QString TToStr (unsigned int i)
 
- Protected Member Functions inherited from OMPropertyVisualizer< 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)
 
template<typename PropType >
void removeProperty_stage1 ()
 
template<typename PropType >
void removeProperty_stage2 ()
 
template<typename PropType >
void duplicateProperty_stage1 ()
 
template<typename PropHandle , typename Iterator >
void duplicateProperty_stage2 (Iterator first, Iterator last)
 
virtual void clearFaceProp ()
 
virtual void clearEdgeProp ()
 
virtual void clearHalfedgeProp ()
 
virtual void clearVertexProp ()
 
virtual void setFacePropertyFromText (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 getClosestFaceId (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)
 
template<typename InnerType >
QString getPropertyText_ (unsigned int index)
 
template<typename Type >
void showHistogram (ACG::QtWidgets::QtHistogramWidget *histogramWidget)
 
- 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::HuePartitioningColors mColorGenerator
 
- Protected Attributes inherited from OMPropertyVisualizer< MeshT >
MeshTmesh
 
int mObjectID
 
- 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, typename T>
class OMPropertyVisualizerInteger< MeshT, T >

Definition at line 56 of file OMPropertyVisualizerInteger.hh.

Constructor & Destructor Documentation

◆ OMPropertyVisualizerInteger()

template<typename MeshT , typename T >
OMPropertyVisualizerInteger< MeshT, T >::OMPropertyVisualizerInteger ( MeshT _mesh,
int  _objectID,
const PropertyInfo _propertyInfo,
bool  isUnsigned 
)

Definition at line 51 of file OMPropertyVisualizerIntegerT_impl.hh.

◆ ~OMPropertyVisualizerInteger()

template<typename MeshT , typename T >
virtual OMPropertyVisualizerInteger< MeshT, T >::~OMPropertyVisualizerInteger ( )
inlinevirtual

Definition at line 60 of file OMPropertyVisualizerInteger.hh.

Member Function Documentation

◆ duplicateProperty()

template<typename MeshT , typename T >
void OMPropertyVisualizerInteger< MeshT, T >::duplicateProperty
overrideprotectedvirtual

Duplicates the property.

This will duplicate the property.

Reimplemented from OMPropertyVisualizer< MeshT >.

Definition at line 450 of file OMPropertyVisualizerIntegerT_impl.hh.

◆ getPropertyText()

template<typename MeshT , typename T >
QString OMPropertyVisualizerInteger< MeshT, T >::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.

Reimplemented from OMPropertyVisualizer< MeshT >.

Definition at line 69 of file OMPropertyVisualizerIntegerT_impl.hh.

◆ getValue() [1/4]

template<typename MeshT , typename T >
virtual T OMPropertyVisualizerInteger< MeshT, T >::getValue ( OpenMesh::EPropHandleT< T >  prop,
typename MeshT::EdgeIter  iter 
)
inlineprotectedvirtual

Definition at line 72 of file OMPropertyVisualizerInteger.hh.

◆ getValue() [2/4]

template<typename MeshT , typename T >
virtual T OMPropertyVisualizerInteger< MeshT, T >::getValue ( OpenMesh::FPropHandleT< T >  prop,
typename MeshT::FaceIter  iter 
)
inlineprotectedvirtual

Definition at line 71 of file OMPropertyVisualizerInteger.hh.

◆ getValue() [3/4]

template<typename MeshT , typename T >
virtual T OMPropertyVisualizerInteger< MeshT, T >::getValue ( OpenMesh::HPropHandleT< T >  prop,
typename MeshT::HalfedgeIter  iter 
)
inlineprotectedvirtual

Definition at line 73 of file OMPropertyVisualizerInteger.hh.

◆ getValue() [4/4]

template<typename MeshT , typename T >
virtual T OMPropertyVisualizerInteger< MeshT, T >::getValue ( OpenMesh::VPropHandleT< T >  prop,
typename MeshT::VertexIter  iter 
)
inlineprotectedvirtual

Definition at line 74 of file OMPropertyVisualizerInteger.hh.

◆ removeProperty()

template<typename MeshT , typename T >
void OMPropertyVisualizerInteger< MeshT, T >::removeProperty
overrideprotectedvirtual

Removes the property.

This will remove the property from the mesh. After this method the PropertyVisualizer should be deleted.

Reimplemented from OMPropertyVisualizer< MeshT >.

Definition at line 444 of file OMPropertyVisualizerIntegerT_impl.hh.

◆ setEdgePropertyFromText()

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

Reimplemented from OMPropertyVisualizer< MeshT >.

Definition at line 397 of file OMPropertyVisualizerIntegerT_impl.hh.

◆ setFacePropertyFromText()

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

Reimplemented from OMPropertyVisualizer< MeshT >.

Definition at line 381 of file OMPropertyVisualizerIntegerT_impl.hh.

◆ setHalfedgePropertyFromText()

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

Reimplemented from OMPropertyVisualizer< MeshT >.

Definition at line 412 of file OMPropertyVisualizerIntegerT_impl.hh.

◆ setVertexPropertyFromText()

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

Reimplemented from OMPropertyVisualizer< MeshT >.

Definition at line 428 of file OMPropertyVisualizerIntegerT_impl.hh.

◆ strToT() [1/2]

template<typename MeshT , typename T >
int OMPropertyVisualizerInteger< MeshT, T >::strToT ( QString  str,
int   
)
inlineprotected

Definition at line 83 of file OMPropertyVisualizerInteger.hh.

◆ strToT() [2/2]

template<typename MeshT , typename T >
unsigned int OMPropertyVisualizerInteger< MeshT, T >::strToT ( QString  str,
unsigned int   
)
inlineprotected

Definition at line 84 of file OMPropertyVisualizerInteger.hh.

◆ TToStr() [1/2]

template<typename MeshT , typename T >
QString OMPropertyVisualizerInteger< MeshT, T >::TToStr ( int  i)
inlineprotected

Definition at line 85 of file OMPropertyVisualizerInteger.hh.

◆ TToStr() [2/2]

template<typename MeshT , typename T >
QString OMPropertyVisualizerInteger< MeshT, T >::TToStr ( unsigned int  i)
inlineprotected

Definition at line 86 of file OMPropertyVisualizerInteger.hh.

◆ visualizeEdgeProp()

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

Reimplemented from OMPropertyVisualizer< MeshT >.

Definition at line 151 of file OMPropertyVisualizerIntegerT_impl.hh.

◆ visualizeFaceProp()

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

Reimplemented from OMPropertyVisualizer< MeshT >.

Definition at line 75 of file OMPropertyVisualizerIntegerT_impl.hh.

◆ visualizeHalfedgeProp()

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

Reimplemented from OMPropertyVisualizer< MeshT >.

Definition at line 228 of file OMPropertyVisualizerIntegerT_impl.hh.

◆ visualizeVertexProp()

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

Reimplemented from OMPropertyVisualizer< MeshT >.

Definition at line 304 of file OMPropertyVisualizerIntegerT_impl.hh.

Member Data Documentation

◆ mColorGenerator

template<typename MeshT , typename T >
ACG::HuePartitioningColors OMPropertyVisualizerInteger< MeshT, T >::mColorGenerator
protected

Definition at line 90 of file OMPropertyVisualizerInteger.hh.


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