2016-05-17 03:04:11 +12:00
|
|
|
#pragma once
|
2016-03-19 06:57:51 +13:00
|
|
|
|
|
|
|
#ifndef PLASTICVISUALSETTINGS_H
|
|
|
|
#define PLASTICVISUALSETTINGS_H
|
|
|
|
|
|
|
|
//===========================================================
|
|
|
|
|
|
|
|
// Forward declarations
|
|
|
|
|
|
|
|
class TXshColumn;
|
|
|
|
|
|
|
|
//===========================================================
|
|
|
|
|
|
|
|
//*********************************************************************************************
|
|
|
|
// PlasticVisualSettings definition
|
|
|
|
//*********************************************************************************************
|
|
|
|
|
2016-06-15 18:43:10 +12:00
|
|
|
//! The PlasticVisualSettings class stores the fundamental visualization options
|
|
|
|
//! that need
|
2016-03-19 06:57:51 +13:00
|
|
|
//! to be implemented in any painter supporting the plastic framework.
|
|
|
|
|
|
|
|
struct PlasticVisualSettings {
|
2016-06-15 18:43:10 +12:00
|
|
|
bool m_applyPlasticDeformation; //!< Whether the deformation must be applied.
|
2016-06-20 14:23:05 +12:00
|
|
|
//! If false,
|
2016-06-15 18:43:10 +12:00
|
|
|
//!< the original image should be displayed instead.
|
|
|
|
TXshColumn *m_showOriginalColumn; //!< As an exception to the above control,
|
2016-06-20 14:23:05 +12:00
|
|
|
//! one specific
|
2016-06-15 18:43:10 +12:00
|
|
|
//!< mesh column can be dispensed from deforming.
|
|
|
|
//!< This is typically used in PlasticTool's 'build mode'.
|
|
|
|
bool m_drawMeshesWireframe; //!< Whether any mesh wireframe should be
|
2016-06-20 14:23:05 +12:00
|
|
|
//! displayed
|
2016-06-15 18:43:10 +12:00
|
|
|
bool m_drawRigidity; //!< Whether mesh rigidities should be displayed
|
|
|
|
bool m_drawSO; //!< Whether mesh vertices' stacking order should
|
|
|
|
//!< be displayed
|
2016-03-19 06:57:51 +13:00
|
|
|
public:
|
2016-06-15 18:43:10 +12:00
|
|
|
PlasticVisualSettings()
|
|
|
|
: m_applyPlasticDeformation(true)
|
|
|
|
, m_showOriginalColumn()
|
|
|
|
, m_drawMeshesWireframe(true)
|
|
|
|
, m_drawRigidity(false)
|
|
|
|
, m_drawSO(false) {}
|
2016-03-19 06:57:51 +13:00
|
|
|
};
|
|
|
|
|
2016-06-15 18:43:10 +12:00
|
|
|
#endif // PLASTICVISUALSETTINGS_H
|