![]() |
ImFusion SDK 4.3
|
#include <ImFusion/Base/MeshDisplayOptions.h>
DataComponent to store the configuration how meshes should be rendered by default (through MeshDisplayHandler). More...
DataComponent to store the configuration how meshes should be rendered by default (through MeshDisplayHandler).
MeshDisplayOptions are attached to the DataComponentList of its parent Mesh so that they can be accessed easily from everywhere. MeshDisplayHandler will query them to configure its renderers.
Public Types | |
enum | RenderMode2d { Intersection , Surface , SurfaceWithClipping } |
Enumeration of options how a mesh should be shown in MPR views. More... | |
Public Member Functions | |
bool | operator== (const MeshDisplayOptions &rhs) const |
std::string | id () const override |
Returns a unique string identifier for this type of data component. | |
void | setUseFaceNormals (bool value) |
Convenience function to set p_useFaceNormals of both p_surfaceRendering and p_normalsRendering at once. | |
bool | usesFaceNormals () const |
Convenience function to check if p_useFaceNormals is set of both p_surfaceRendering and p_normalsRendering. | |
![]() | |
std::unique_ptr< DataComponentBase > | clone () const override |
Creates a clone of this data component. | |
std::unique_ptr< Subclass > | cloneDerived () const |
bool | assign (const DataComponentBase &other) override |
Assigns the content of other to this data component. | |
bool | equals (const DataComponentBase &other) const override |
Compares this data component to other for equality. | |
![]() | |
virtual void | configure (const Properties *p) |
Configure this object instance by de-serializing the given Properties. | |
virtual void | configuration (Properties *p) const |
Serialize the current object configuration into the given Properties object. | |
virtual void | configureDefaults () |
Retrieve the properties of this object, replaces values with their defaults and sets it again. | |
void | registerParameter (ParameterBase *param) |
Register the given Parameter or SubProperty, so that it will be configured during configure()/configuration(). | |
void | unregisterParameter (const ParameterBase *param) |
Remove the given Parameter or SubProperty from the list of registered parameters. | |
Configurable (const Configurable &rhs) | |
Configurable (Configurable &&rhs) noexcept | |
Configurable & | operator= (const Configurable &) |
Configurable & | operator= (Configurable &&) noexcept |
Public Attributes | |
Parameter< RenderMode2d > | p_renderMode2d = {"renderMode2d", RenderMode2d::Intersection, this} |
SubProperty< GlMeshRendererIntersection::DisplayOptions > | p_intersectionRendering |
Parameter< bool > | p_showSurface = {"showSurface", true, this} |
SubProperty< GlMeshRendererSurface::DisplayOptions > | p_surfaceRendering = {"surfaceRendering", GlMeshRendererSurface::DisplayOptions(), this} |
Parameter< bool > | p_showContours = {"showContours", false, this} |
SubProperty< GlMeshRendererContours::DisplayOptions > | p_contourRendering = {"contourRendering", GlMeshRendererContours::DisplayOptions(), this} |
Parameter< bool > | p_showNormals = {"showNormals", false, this} |
SubProperty< GlMeshRendererNormals::DisplayOptions > | p_normalsRendering = {"normalsRendering", GlMeshRendererNormals::DisplayOptions(), this} |
![]() | |
Signal | signalParametersChanged |
Emitted whenever one of the registered Parameters' or SubPropertys' signalValueChanged signal was emitted. | |
Additional Inherited Members | |
![]() | |
DataComponentBase (const DataComponentBase &)=default | |
DataComponentBase & | operator= (const DataComponentBase &other)=default |
![]() | |
std::vector< Param > | m_params |
List of all registered Parameter and SubProperty instances. | |
enum RenderMode2d |
Enumeration of options how a mesh should be shown in MPR views.
|
inlineoverridevirtual |
Returns a unique string identifier for this type of data component.
Implements DataComponentBase.
SubProperty<GlMeshRendererIntersection::DisplayOptions> p_intersectionRendering |