MeshLib Documentation
Loading...
Searching...
No Matches
MR::SurfaceManipulationWidget Class Reference

widget for surface modifying @detail available 3 modes: add (move surface region in direction of normal) remove (move surface region in opposite direction to normal) relax (relax surface region) More...

#include <MRSurfaceManipulationWidget.h>

+ Inheritance diagram for MR::SurfaceManipulationWidget:

Classes

struct  Settings
 Mesh change settings. More...
 

Public Types

enum class  WorkMode {
  Add , Remove , Relax , Laplacian ,
  Patch
}
 widget work modes More...
 

Public Member Functions

MRVIEWER_API SurfaceManipulationWidget ()
 
MRVIEWER_API ~SurfaceManipulationWidget ()
 
MRVIEWER_API void init (const std::shared_ptr< ObjectMesh > &objectMesh)
 initialize widget according ObjectMesh
 
MRVIEWER_API void reset ()
 reset widget state
 
MRVIEWER_API void setSettings (const Settings &settings)
 set widget settings (mesh change settings)
 
MRVIEWER_API const SettingsgetSettings ()
 get widget settings
 
MRVIEWER_API float getMinRadius ()
 
Palettepalette ()
 
MRVIEWER_API void updateTexture ()
 
MRVIEWER_API void updateUVs ()
 
MRVIEWER_API void enableDeviationVisualization (bool enable)
 
MRVIEWER_API Vector2f getMinMax ()
 
- Public Member Functions inherited from MR::MultiListener< MouseDownListener, MouseMoveListener, MouseUpListener, PostDrawListener >
virtual ~MultiListener ()=default
 
virtual void connect (Viewer *viewer, int group=0, boost::signals2::connect_position pos=boost::signals2::connect_position::at_back)
 
virtual void disconnect ()
 

Detailed Description

widget for surface modifying @detail available 3 modes: add (move surface region in direction of normal) remove (move surface region in opposite direction to normal) relax (relax surface region)

Member Enumeration Documentation

◆ WorkMode

widget work modes

Enumerator
Add 
Remove 
Relax 
Laplacian 
Patch 

Constructor & Destructor Documentation

◆ SurfaceManipulationWidget()

MRVIEWER_API MR::SurfaceManipulationWidget::SurfaceManipulationWidget ( )

◆ ~SurfaceManipulationWidget()

MRVIEWER_API MR::SurfaceManipulationWidget::~SurfaceManipulationWidget ( )

Member Function Documentation

◆ enableDeviationVisualization()

MRVIEWER_API void MR::SurfaceManipulationWidget::enableDeviationVisualization ( bool enable)

◆ getMinMax()

MRVIEWER_API Vector2f MR::SurfaceManipulationWidget::getMinMax ( )

◆ getMinRadius()

MRVIEWER_API float MR::SurfaceManipulationWidget::getMinRadius ( )
inline

◆ getSettings()

MRVIEWER_API const Settings & MR::SurfaceManipulationWidget::getSettings ( )
inline

get widget settings

◆ init()

MRVIEWER_API void MR::SurfaceManipulationWidget::init ( const std::shared_ptr< ObjectMesh > & objectMesh)

initialize widget according ObjectMesh

◆ palette()

Palette & MR::SurfaceManipulationWidget::palette ( )
inline

◆ reset()

MRVIEWER_API void MR::SurfaceManipulationWidget::reset ( )

reset widget state

◆ setSettings()

MRVIEWER_API void MR::SurfaceManipulationWidget::setSettings ( const Settings & settings)

set widget settings (mesh change settings)

◆ updateTexture()

MRVIEWER_API void MR::SurfaceManipulationWidget::updateTexture ( )

◆ updateUVs()

MRVIEWER_API void MR::SurfaceManipulationWidget::updateUVs ( )

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