MeshLib
 
Loading...
Searching...
No Matches
MR::FeatureObject Class Referenceabstract

An interface class which allows feature objects to share setters and getters on their main properties, for convenient presentation in the UI. More...

#include <MRFeatureObject.h>

+ Inheritance diagram for MR::FeatureObject:

Public Member Functions

virtual const std::vector< FeatureObjectSharedProperty > & getAllSharedProperties () const =0
 Create and generate list of bounded getters and setters for the main properties of feature object, together with prop. name for display and edit into UI.
 
MRMESH_API bool supportsVisualizeProperty (AnyVisualizeMaskEnum type) const override
 Returns true if this class supports the property type. Otherwise passing it to the functions below is illegal.
 
MRMESH_API AllVisualizeProperties getAllVisualizeProperties () const override
 get all visualize properties masks
 
MRMESH_API const ViewportMaskgetVisualizePropertyMask (AnyVisualizeMaskEnum type) const override
 returns mask of viewports where given property is set
 
MRMESH_API void serializeFields_ (Json::Value &root) const override
 
MRMESH_API void deserializeFields_ (const Json::Value &root) override
 
virtual FeatureObjectProjectPointResult projectPoint (const Vector3f &point, ViewportId id={}) const =0
 
MRMESH_API std::optional< Vector3fgetNormal (const Vector3f &point) const
 
MRMESH_API void setXf (const AffineXf3f &xf, ViewportId id={}) override
 
MRMESH_API void resetXf (ViewportId id={}) override
 forgets specific transform in given viewport (or forgets all specific transforms for {} input)
 
virtual MRMESH_API Vector3f getBasePoint (ViewportId id={}) const
 
Matrix3f getRotationMatrix (ViewportId id={}, bool *isDef=nullptr) const
 
Matrix3f getScaleShearMatrix (ViewportId id={}, bool *isDef=nullptr) const
 
MRMESH_API const ColorgetDecorationsColor (bool selected, ViewportId viewportId={}, bool *isDef=nullptr) const
 
virtual MRMESH_API void setDecorationsColor (const Color &color, bool selected, ViewportId viewportId={})
 
virtual MRMESH_API const ViewportProperty< Color > & getDecorationsColorForAllViewports (bool selected) const
 
virtual MRMESH_API void setDecorationsColorForAllViewports (ViewportProperty< Color > val, bool selected)
 
virtual MRMESH_API float getPointSize () const
 
virtual MRMESH_API float getLineWidth () const
 
virtual MRMESH_API void setPointSize (float pointSize)
 
virtual MRMESH_API void setLineWidth (float lineWidth)
 
virtual MRMESH_API float getSubfeaturePointSize () const
 
virtual MRMESH_API float getSubfeatureLineWidth () const
 
virtual MRMESH_API void setSubfeaturePointSize (float pointSize)
 
virtual MRMESH_API void setSubfeatureLineWidth (float lineWidth)
 
virtual MRMESH_API float getMainFeatureAlpha () const
 
virtual MRMESH_API float getSubfeatureAlphaPoints () const
 
virtual MRMESH_API float getSubfeatureAlphaLines () const
 
virtual MRMESH_API float getSubfeatureAlphaMesh () const
 
virtual MRMESH_API void setMainFeatureAlpha (float alpha)
 
virtual MRMESH_API void setSubfeatureAlphaPoints (float alpha)
 
virtual MRMESH_API void setSubfeatureAlphaLines (float alpha)
 
virtual MRMESH_API void setSubfeatureAlphaMesh (float alpha)
 
- Public Member Functions inherited from MR::VisualObject
MRMESH_API VisualObject ()
 
 VisualObject (VisualObject &&)=default
 
VisualObjectoperator= (VisualObject &&)=default
 
virtual ~VisualObject ()=default
 
virtual const char * typeName () const override
 
virtual std::string getClassName () const override
 return human readable name of subclass
 
MRMESH_API void setVisualizeProperty (bool value, AnyVisualizeMaskEnum type, ViewportMask viewportMask)
 set visual property in all viewports specified by the mask
 
virtual MRMESH_API void setVisualizePropertyMask (AnyVisualizeMaskEnum type, ViewportMask viewportMask)
 set visual property mask
 
MRMESH_API bool getVisualizeProperty (AnyVisualizeMaskEnum type, ViewportMask viewportMask) const
 returns true if the property is set at least in one viewport specified by the mask
 
MRMESH_API void toggleVisualizeProperty (AnyVisualizeMaskEnum type, ViewportMask viewportMask)
 toggle visual property in all viewports specified by the mask
 
void setAllVisualizeProperties (const AllVisualizeProperties &properties)
 set all visualize properties masks
 
void showLabels (bool on)
 shows/hides labels
 
bool showLabels () const
 
void showName (bool on)
 shows/hides object name in all viewports
 
bool showName () const
 returns whether object name is shown in any viewport
 
MRMESH_API const ColorgetFrontColor (bool selected=true, ViewportId viewportId={}) const
 returns color of object when it is selected/not-selected (depending on argument) in given viewport
 
virtual MRMESH_API void setFrontColor (const Color &color, bool selected, ViewportId viewportId={})
 sets color of object when it is selected/not-selected (depending on argument) in given viewport
 
virtual MRMESH_API const ViewportProperty< Color > & getFrontColorsForAllViewports (bool selected=true) const
 returns color of object when it is selected/not-selected (depending on argument) in all viewports
 
virtual MRMESH_API void setFrontColorsForAllViewports (ViewportProperty< Color > val, bool selected=true)
 sets color of object when it is selected/not-selected (depending on argument) in all viewports
 
virtual MRMESH_API const ViewportProperty< Color > & getBackColorsForAllViewports () const
 returns backward color of object in all viewports
 
virtual MRMESH_API void setBackColorsForAllViewports (ViewportProperty< Color > val)
 sets backward color of object in all viewports
 
MRMESH_API const ColorgetBackColor (ViewportId viewportId={}) const
 returns backward color of object in given viewport
 
virtual MRMESH_API void setBackColor (const Color &color, ViewportId viewportId={})
 sets backward color of object in given viewport
 
MRMESH_API const uint8_t & getGlobalAlpha (ViewportId viewportId={}) const
 returns global transparency alpha of object in given viewport
 
virtual MRMESH_API void setGlobalAlpha (uint8_t alpha, ViewportId viewportId={})
 sets global transparency alpha of object in given viewport
 
virtual MRMESH_API const ViewportProperty< uint8_t > & getGlobalAlphaForAllViewports () const
 returns global transparency alpha of object in all viewports
 
virtual MRMESH_API void setGlobalAlphaForAllViewports (ViewportProperty< uint8_t > val)
 sets global transparency alpha of object in all viewports
 
MRMESH_API const ColorgetLabelsColor (ViewportId viewportId={}) const
 
virtual MRMESH_API void setLabelsColor (const Color &color, ViewportId viewportId={})
 
MRMESH_API const ViewportProperty< Color > & getLabelsColorsForAllViewports () const
 
virtual MRMESH_API void setLabelsColorsForAllViewports (ViewportProperty< Color > val)
 
virtual MRMESH_API void setDirtyFlags (uint32_t mask, bool invalidateCaches=true)
 
MRMESH_API uint32_t getDirtyFlags () const
 returns current dirty flags for the object
 
MRMESH_API void resetDirty () const
 resets all dirty flags (except for cache flags that will be reset automatically on cache update)
 
MRMESH_API Box3f getBoundingBox () const
 returns cached bounding box of this object in local coordinates
 
virtual MRMESH_API Box3f getWorldBox (ViewportId={}) const override
 
virtual bool getRedrawFlag (ViewportMask viewportMask) const override
 returns true if the object must be redrawn (due to dirty flags) in one of specified viewports
 
bool isPickable (ViewportMask viewportMask=ViewportMask::any()) const
 whether the object can be picked (by mouse) in any of given viewports
 
virtual MRMESH_API void setPickable (bool on, ViewportMask viewportMask=ViewportMask::all())
 sets the object as can/cannot be picked (by mouse) in all of given viewports
 
const VertColors & getVertsColorMap () const
 returns per-vertex colors of the object
 
virtual void setVertsColorMap (VertColors vertsColorMap)
 sets per-vertex colors of the object
 
virtual void updateVertsColorMap (VertColors &vertsColorMap)
 swaps per-vertex colors of the object with given argument
 
ColoringType getColoringType () const
 returns the current coloring mode of the object
 
virtual MRMESH_API void setColoringType (ColoringType coloringType)
 sets coloring mode of the object with given argument
 
virtual MRMESH_API void copyColors (const VisualObject &src, const VertMap &thisToSrc, const FaceMap &thisToSrcFaces={})
 copies point colors from given source object
 
float getShininess () const
 returns the current shininess visual value
 
virtual void setShininess (float shininess)
 sets shininess visual value of the object with given argument
 
float getSpecularStrength () const
 returns intensity of reflections
 
virtual void setSpecularStrength (float specularStrength)
 sets intensity of reflections
 
float getAmbientStrength () const
 returns intensity of non-directional light
 
virtual void setAmbientStrength (float ambientStrength)
 sets intensity of non-directional light
 
const std::vector< PositionedText > & getLabels () const
 
virtual void setLabels (std::vector< PositionedText > labels)
 
virtual MRMESH_API std::shared_ptr< Objectclone () const override
 
virtual MRMESH_API std::shared_ptr< ObjectshallowClone () const override
 
virtual MRMESH_API bool render (const ModelRenderParams &) const
 
virtual MRMESH_API void renderForPicker (const ModelBaseRenderParams &, unsigned) const
 draws this object for picking
 
virtual MRMESH_API void renderUi (const UiRenderParams &params) const
 draws this object for 2d UI
 
 VisualObject (ProtectedStruct, const VisualObject &obj)
 this ctor is public only for std::make_shared used inside clone()
 
virtual MRMESH_API size_t heapBytes () const override
 returns the amount of memory this object occupies on heap
 
virtual MRMESH_API std::vector< std::string > getInfoLines () const override
 return several info lines that can better describe the object in the UI
 
MRMESH_API bool useDefaultScenePropertiesOnDeserialization () const
 
MRMESH_API void setUseDefaultScenePropertiesOnDeserialization (bool useDefaultScenePropertiesOnDeserialization)
 
- Public Member Functions inherited from MR::Object
 Object ()=default
 
 Object (Object &&) noexcept=default
 
Objectoperator= (Object &&) noexcept=default
 
virtual ~Object ()=default
 
template<typename T >
T * asType ()
 
template<typename T >
const T * asType () const
 
const std::string & name () const
 
virtual void setName (std::string name)
 
MRMESH_API std::shared_ptr< const Objectfind (const std::string_view &name) const
 finds a direct child by name
 
std::shared_ptr< Objectfind (const std::string_view &name)
 
template<typename T >
std::shared_ptr< const T > find () const
 finds a direct child by type
 
template<typename T >
std::shared_ptr< T > find ()
 
template<typename T >
std::shared_ptr< const T > find (const std::string_view &name) const
 finds a direct child by name and type
 
template<typename T >
std::shared_ptr< T > find (const std::string_view &name)
 
const AffineXf3fxf (ViewportId id={}, bool *isDef=nullptr) const
 
const ViewportProperty< AffineXf3f > & xfsForAllViewports () const
 returns xfs for all viewports, combined into a single object
 
virtual void setXfsForAllViewports (ViewportProperty< AffineXf3f > xf)
 modifies xfs for all viewports at once
 
MRMESH_API AffineXf3f worldXf (ViewportId id={}, bool *isDef=nullptr) const
 
MRMESH_API void setWorldXf (const AffineXf3f &xf, ViewportId id={})
 
virtual MRMESH_API void applyScale (float scaleFactor)
 scale object size (all point positions)
 
MRMESH_API ViewportMask globalVisibilityMask () const
 returns all viewports where this object is visible together with all its parents
 
bool globalVisibility (ViewportMask viewportMask=ViewportMask::any()) const
 returns true if this object is visible together with all its parents in any of given viewports
 
MRMESH_API void setGlobalVisibility (bool on, ViewportMask viewportMask=ViewportMask::any())
 if true sets all predecessors visible, otherwise sets this object invisible
 
bool isLocked () const
 object properties lock for UI
 
virtual void setLocked (bool on)
 
bool isParentLocked () const
 
virtual void setParentLocked (bool lock)
 
const Objectparent () const
 returns parent object in the tree
 
Objectparent ()
 
MRMESH_API bool isAncestor (const Object *ancestor) const
 return true if given object is ancestor of this one, false otherwise
 
MRMESH_API ObjectfindCommonAncestor (Object &other)
 
const ObjectfindCommonAncestor (const Object &other) const
 
virtual MRMESH_API bool detachFromParent ()
 
const std::vector< std::shared_ptr< Object > > & children ()
 an object can hold other sub-objects
 
const std::vector< std::shared_ptr< const Object > > & children () const
 
virtual MRMESH_API bool addChild (std::shared_ptr< Object > child, bool recognizedChild=true)
 
virtual MRMESH_API bool addChildBefore (std::shared_ptr< Object > newChild, const std::shared_ptr< Object > &existingChild)
 
bool removeChild (const std::shared_ptr< Object > &child)
 returns false if it was not child of this
 
virtual MRMESH_API bool removeChild (Object *child)
 
virtual MRMESH_API void removeAllChildren ()
 detaches all recognized children from this, keeping all unrecognized ones
 
MRMESH_API void sortChildren ()
 sort recognized children by name
 
virtual MRMESH_API bool select (bool on)
 selects the object, returns true if value changed, otherwise returns false
 
virtual bool isSelected () const
 
virtual MRMESH_API void setAncillary (bool ancillary)
 
bool isAncillary () const
 
MRMESH_API void setVisible (bool on, ViewportMask viewportMask=ViewportMask::all())
 sets the object visible in the viewports specified by the mask (by default in all viewports)
 
bool isVisible (ViewportMask viewportMask=ViewportMask::any()) const
 checks whether the object is visible in any of the viewports specified by the mask (by default in any viewport)
 
virtual MRMESH_API void setVisibilityMask (ViewportMask viewportMask)
 specifies object visibility as bitmask of viewports
 
virtual ViewportMask visibilityMask () const
 gets object visibility as bitmask of viewports
 
void resetRedrawFlag () const
 
MRMESH_API std::shared_ptr< ObjectcloneTree () const
 clones all tree of this object (except ancillary and unrecognized children)
 
MRMESH_API std::shared_ptr< ObjectshallowCloneTree () const
 
MRMESH_API Expected< std::vector< std::future< VoidOrErrStr > > > serializeRecursive (const std::filesystem::path &path, Json::Value &root, int childId) const
 
MRMESH_API VoidOrErrStr deserializeRecursive (const std::filesystem::path &path, const Json::Value &root, ProgressCallback progressCb={}, int *objCounter=nullptr)
 
MRMESH_API void swap (Object &other)
 
MRMESH_API Box3f getWorldTreeBox (ViewportId={}) const
 returns bounding box of this object and all children visible in given (or default) viewport in world coordinates
 
virtual bool hasVisualRepresentation () const
 does the object have any visual representation (visible points, triangles, edges, etc.), no considering child objects
 
virtual bool hasModel () const
 
 Object (ProtectedStruct, const Object &obj)
 
- Public Member Functions inherited from MR::ObjectChildrenHolder
 ObjectChildrenHolder ()=default
 
 ObjectChildrenHolder (const ObjectChildrenHolder &) noexcept
 
ObjectChildrenHolderoperator= (const ObjectChildrenHolder &) noexcept
 
MRMESH_API ObjectChildrenHolder (ObjectChildrenHolder &&) noexcept
 
MRMESH_API ObjectChildrenHolderoperator= (ObjectChildrenHolder &&) noexcept
 
MRMESH_API ~ObjectChildrenHolder ()
 
MRMESH_API std::shared_ptr< ObjectgetSharedPtr () const
 
MRMESH_API size_t heapBytes () const
 

Protected Member Functions

MRMESH_API FeatureObject (int numDimensions)
 
MRMESH_API void setAllVisualizeProperties_ (const AllVisualizeProperties &properties, std::size_t &pos) override
 
- Protected Member Functions inherited from MR::VisualObject
 VisualObject (const VisualObject &obj)=default
 
virtual MRMESH_API void swapBase_ (Object &other) override
 swaps this object with other
 
virtual void setupRenderObject_ () const
 
MRMESH_API ViewportMaskgetVisualizePropertyMask_ (AnyVisualizeMaskEnum type)
 
MRMESH_API void deserializeFields_ (const Json::Value &root) override
 
virtual Box3f computeBoundingBox_ () const
 
MRMESH_API void boundingBoxToInfoLines_ (std::vector< std::string > &res) const
 adds information about bounding box in res
 
template<AnyVisualizeMaskEnumType T>
void setAllVisualizePropertiesForEnum (const AllVisualizeProperties &properties, std::size_t &pos)
 
template<AnyVisualizeMaskEnumType T>
void getAllVisualizePropertiesForEnum (AllVisualizeProperties &properties) const
 
- Protected Member Functions inherited from MR::Object
 Object (const Object &obj)=default
 user should not be able to call copy implicitly, use clone() function instead
 
virtual MRMESH_API void swapSignals_ (Object &other)
 
virtual MRMESH_API Expected< std::future< VoidOrErrStr > > serializeModel_ (const std::filesystem::path &path) const
 
virtual MRMESH_API VoidOrErrStr deserializeModel_ (const std::filesystem::path &path, ProgressCallback progressCb={})
 Reads model from file.
 
virtual MRMESH_API void propagateWorldXfChangedSignal_ ()
 

Protected Attributes

ViewportMask subfeatureVisibility_ = ViewportMask::all()
 
ViewportMask detailsOnNameTag_ = ViewportMask::all()
 
ViewportProperty< Matrix3fr_
 
ViewportProperty< Matrix3fs_
 
std::array< ViewportProperty< Color >, 2 > decorationsColor_
 
float pointSize_ = 10
 
float lineWidth_ = 2
 
float subPointSize_ = 6
 
float subLineWidth_ = 1
 
float mainFeatureAlpha_ = 1
 
float subAlphaPoints_ = 1
 
float subAlphaLines_ = 1
 
float subAlphaMesh_ = 0.5f
 
- Protected Attributes inherited from MR::VisualObject
UniquePtr< IRenderObjectrenderObj_
 
Dirty dirty_
 
ViewportMask clipByPlane_
 
ViewportMask showLabels_
 
ViewportMask showName_
 
ViewportMask cropLabels_ = ViewportMask::all()
 
ViewportMask pickable_ = ViewportMask::all()
 enable picking by gl
 
ViewportMask invertNormals_
 invert mesh normals
 
ViewportMask depthTest_ = ViewportMask::all()
 
ViewportProperty< ColorlabelsColor_ = {}
 
float shininess_ {35.0f}
 specular exponent
 
float specularStrength_ { 0.5f }
 
float ambientStrength_ { 0.1f }
 
ColoringType coloringType_ {ColoringType::SolidColor}
 Main coloring options.
 
VertColors vertsColorMap_
 
ViewportProperty< ColorselectedColor_
 
ViewportProperty< ColorunselectedColor_
 
ViewportProperty< ColorbackFacesColor_
 
ViewportProperty< uint8_t > globalAlpha_ { 255 }
 
std::vector< PositionedTextlabels_
 
bool useDefaultScenePropertiesOnDeserialization_ { false }
 
- Protected Attributes inherited from MR::Object
std::string name_
 
ViewportProperty< AffineXf3fxf_
 
ViewportMask visibilityMask_ = ViewportMask::all()
 
bool locked_ = false
 
bool parentLocked_ = false
 
bool selected_ { false }
 
bool ancillary_ { false }
 
bool needRedraw_ {false}
 
- Protected Attributes inherited from MR::ObjectChildrenHolder
ObjectChildrenHolderparent_ = nullptr
 
std::vector< std::shared_ptr< Object > > children_
 
std::vector< std::weak_ptr< Object > > bastards_
 recognized ones
 

Additional Inherited Members

- Public Types inherited from MR::Object
using XfChangedSignal = Signal<void() >
 
- Static Public Member Functions inherited from MR::VisualObject
static constexpr const char * TypeName () noexcept
 
- Static Public Member Functions inherited from MR::Object
static constexpr const char * TypeName () noexcept
 
- Public Attributes inherited from MR::Object
XfChangedSignal worldXfChangedSignal
 

Detailed Description

An interface class which allows feature objects to share setters and getters on their main properties, for convenient presentation in the UI.

Constructor & Destructor Documentation

◆ FeatureObject()

MRMESH_API MR::FeatureObject::FeatureObject ( int numDimensions)
protected

Member Function Documentation

◆ deserializeFields_()

MRMESH_API void MR::FeatureObject::deserializeFields_ ( const Json::Value & root)
overridevirtual

Reads parameters from json value

Note
if you override this method, please call Base::deserializeFields_(root) in the beginning

Reimplemented from MR::Object.

◆ getAllSharedProperties()

virtual const std::vector< FeatureObjectSharedProperty > & MR::FeatureObject::getAllSharedProperties ( ) const
pure virtual

Create and generate list of bounded getters and setters for the main properties of feature object, together with prop. name for display and edit into UI.

Implemented in MR::CircleObject, MR::ConeObject, MR::CylinderObject, MR::LineObject, MR::PlaneObject, MR::PointObject, and MR::SphereObject.

◆ getAllVisualizeProperties()

MRMESH_API AllVisualizeProperties MR::FeatureObject::getAllVisualizeProperties ( ) const
overridevirtual

get all visualize properties masks

Reimplemented from MR::VisualObject.

◆ getBasePoint()

virtual MRMESH_API Vector3f MR::FeatureObject::getBasePoint ( ViewportId id = {}) const
nodiscardvirtual

◆ getDecorationsColor()

MRMESH_API const Color & MR::FeatureObject::getDecorationsColor ( bool selected,
ViewportId viewportId = {},
bool * isDef = nullptr ) const

◆ getDecorationsColorForAllViewports()

virtual MRMESH_API const ViewportProperty< Color > & MR::FeatureObject::getDecorationsColorForAllViewports ( bool selected) const
virtual

◆ getLineWidth()

virtual MRMESH_API float MR::FeatureObject::getLineWidth ( ) const
nodiscardvirtual

◆ getMainFeatureAlpha()

virtual MRMESH_API float MR::FeatureObject::getMainFeatureAlpha ( ) const
nodiscardvirtual

◆ getNormal()

MRMESH_API std::optional< Vector3f > MR::FeatureObject::getNormal ( const Vector3f & point) const
nodiscard

◆ getPointSize()

virtual MRMESH_API float MR::FeatureObject::getPointSize ( ) const
nodiscardvirtual

◆ getRotationMatrix()

Matrix3f MR::FeatureObject::getRotationMatrix ( ViewportId id = {},
bool * isDef = nullptr ) const
inlinenodiscard

◆ getScaleShearMatrix()

Matrix3f MR::FeatureObject::getScaleShearMatrix ( ViewportId id = {},
bool * isDef = nullptr ) const
inlinenodiscard

◆ getSubfeatureAlphaLines()

virtual MRMESH_API float MR::FeatureObject::getSubfeatureAlphaLines ( ) const
nodiscardvirtual

◆ getSubfeatureAlphaMesh()

virtual MRMESH_API float MR::FeatureObject::getSubfeatureAlphaMesh ( ) const
nodiscardvirtual

◆ getSubfeatureAlphaPoints()

virtual MRMESH_API float MR::FeatureObject::getSubfeatureAlphaPoints ( ) const
nodiscardvirtual

◆ getSubfeatureLineWidth()

virtual MRMESH_API float MR::FeatureObject::getSubfeatureLineWidth ( ) const
nodiscardvirtual

◆ getSubfeaturePointSize()

virtual MRMESH_API float MR::FeatureObject::getSubfeaturePointSize ( ) const
nodiscardvirtual

◆ getVisualizePropertyMask()

MRMESH_API const ViewportMask & MR::FeatureObject::getVisualizePropertyMask ( AnyVisualizeMaskEnum type) const
overridevirtual

returns mask of viewports where given property is set

Reimplemented from MR::VisualObject.

◆ projectPoint()

virtual FeatureObjectProjectPointResult MR::FeatureObject::projectPoint ( const Vector3f & point,
ViewportId id = {} ) const
nodiscardpure virtual

◆ resetXf()

MRMESH_API void MR::FeatureObject::resetXf ( ViewportId id = {})
overridevirtual

forgets specific transform in given viewport (or forgets all specific transforms for {} input)

Reimplemented from MR::Object.

◆ serializeFields_()

MRMESH_API void MR::FeatureObject::serializeFields_ ( Json::Value & root) const
overridevirtual

Write parameters to given Json::Value,

Note
if you override this method, please call Base::serializeFields_(root) in the beginning

Reimplemented from MR::VisualObject.

Reimplemented in MR::LineObject, MR::PlaneObject, MR::PointObject, and MR::SphereObject.

◆ setAllVisualizeProperties_()

MRMESH_API void MR::FeatureObject::setAllVisualizeProperties_ ( const AllVisualizeProperties & properties,
std::size_t & pos )
overrideprotectedvirtual

Reimplemented from MR::VisualObject.

◆ setDecorationsColor()

virtual MRMESH_API void MR::FeatureObject::setDecorationsColor ( const Color & color,
bool selected,
ViewportId viewportId = {} )
virtual

◆ setDecorationsColorForAllViewports()

virtual MRMESH_API void MR::FeatureObject::setDecorationsColorForAllViewports ( ViewportProperty< Color > val,
bool selected )
virtual

◆ setLineWidth()

virtual MRMESH_API void MR::FeatureObject::setLineWidth ( float lineWidth)
virtual

◆ setMainFeatureAlpha()

virtual MRMESH_API void MR::FeatureObject::setMainFeatureAlpha ( float alpha)
virtual

◆ setPointSize()

virtual MRMESH_API void MR::FeatureObject::setPointSize ( float pointSize)
virtual

◆ setSubfeatureAlphaLines()

virtual MRMESH_API void MR::FeatureObject::setSubfeatureAlphaLines ( float alpha)
virtual

◆ setSubfeatureAlphaMesh()

virtual MRMESH_API void MR::FeatureObject::setSubfeatureAlphaMesh ( float alpha)
virtual

◆ setSubfeatureAlphaPoints()

virtual MRMESH_API void MR::FeatureObject::setSubfeatureAlphaPoints ( float alpha)
virtual

◆ setSubfeatureLineWidth()

virtual MRMESH_API void MR::FeatureObject::setSubfeatureLineWidth ( float lineWidth)
virtual

◆ setSubfeaturePointSize()

virtual MRMESH_API void MR::FeatureObject::setSubfeaturePointSize ( float pointSize)
virtual

◆ setXf()

MRMESH_API void MR::FeatureObject::setXf ( const AffineXf3f & xf,
ViewportId id = {} )
overridevirtual

Reimplemented from MR::Object.

◆ supportsVisualizeProperty()

MRMESH_API bool MR::FeatureObject::supportsVisualizeProperty ( AnyVisualizeMaskEnum type) const
nodiscardoverridevirtual

Returns true if this class supports the property type. Otherwise passing it to the functions below is illegal.

Reimplemented from MR::VisualObject.

Member Data Documentation

◆ decorationsColor_

std::array<ViewportProperty<Color>, 2> MR::FeatureObject::decorationsColor_
protected

◆ detailsOnNameTag_

ViewportMask MR::FeatureObject::detailsOnNameTag_ = ViewportMask::all()
protected

◆ lineWidth_

float MR::FeatureObject::lineWidth_ = 2
protected

◆ mainFeatureAlpha_

float MR::FeatureObject::mainFeatureAlpha_ = 1
protected

◆ pointSize_

float MR::FeatureObject::pointSize_ = 10
protected

◆ r_

ViewportProperty<Matrix3f> MR::FeatureObject::r_
protected

◆ s_

ViewportProperty<Matrix3f> MR::FeatureObject::s_
protected

◆ subAlphaLines_

float MR::FeatureObject::subAlphaLines_ = 1
protected

◆ subAlphaMesh_

float MR::FeatureObject::subAlphaMesh_ = 0.5f
protected

◆ subAlphaPoints_

float MR::FeatureObject::subAlphaPoints_ = 1
protected

◆ subfeatureVisibility_

ViewportMask MR::FeatureObject::subfeatureVisibility_ = ViewportMask::all()
protected

◆ subLineWidth_

float MR::FeatureObject::subLineWidth_ = 1
protected

◆ subPointSize_

float MR::FeatureObject::subPointSize_ = 6
protected

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