MeshLib Java Docs
Loading...
Searching...
No Matches
Inheritance diagram for meshlib.VisualObject:

Public Member Functions

 VisualObject (java.lang.foreign.MemorySegment ptr, boolean owned, java.lang.Object owner)
 VisualObject ()
 VisualObject (meshlib.VisualObject _other)
meshlib.VisualObject assignFromAnother (meshlib.VisualObject _other)
java.lang.Byte typeName ()
meshlib.std_string className ()
meshlib.std_string classNameInPlural ()
boolean supportsVisualizeProperty (meshlib.AnyVisualizeMaskEnum type)
void setVisualizeProperty (boolean value, meshlib.AnyVisualizeMaskEnum type, meshlib.ViewportMask viewportMask)
void setVisualizePropertyMask (meshlib.AnyVisualizeMaskEnum type, meshlib.ViewportMask viewportMask)
boolean getVisualizeProperty (meshlib.AnyVisualizeMaskEnum type, meshlib.ViewportMask viewportMask)
meshlib.ViewportMask getVisualizePropertyMask (meshlib.AnyVisualizeMaskEnum type)
void toggleVisualizeProperty (meshlib.AnyVisualizeMaskEnum type, meshlib.ViewportMask viewportMask)
meshlib.std_vector_MR_ViewportMask getAllVisualizeProperties ()
void setAllVisualizeProperties (meshlib.std_vector_MR_ViewportMask properties)
void copyAllSolidColors (meshlib.VisualObject other)
meshlib.ViewportMask globalClippedByPlaneMask ()
boolean globalClippedByPlane (meshlib.ViewportMask viewportMask)
void setGlobalClippedByPlane (boolean on, meshlib.ViewportMask viewportMask)
void showName (boolean on)
boolean showName ()
meshlib.Color getFrontColor (java.lang.Boolean selected, meshlib.ViewportId viewportId)
void setFrontColor (meshlib.Color color, boolean selected, meshlib.ViewportId viewportId)
meshlib.ViewportProperty_MR_Color getFrontColorsForAllViewports (java.lang.Boolean selected)
void setFrontColorsForAllViewports (meshlib.ViewportProperty_MR_Color val, java.lang.Boolean selected)
meshlib.ViewportProperty_MR_Color getBackColorsForAllViewports ()
void setBackColorsForAllViewports (meshlib.ViewportProperty_MR_Color val)
meshlib.Color getBackColor (meshlib.ViewportId viewportId)
void setBackColor (meshlib.Color color, meshlib.ViewportId viewportId)
byte getGlobalAlpha (meshlib.ViewportId viewportId)
void setGlobalAlpha (byte alpha, meshlib.ViewportId viewportId)
meshlib.ViewportProperty_unsigned_char getGlobalAlphaForAllViewports ()
void setGlobalAlphaForAllViewports (meshlib.ViewportProperty_unsigned_char val)
void setDirtyFlags (int mask, java.lang.Boolean invalidateCaches)
int getDirtyFlags ()
void resetDirty ()
void resetDirtyExceptMask (int mask)
meshlib.Box3f getBoundingBox ()
meshlib.Box3f getWorldBox (meshlib.ViewportId _1)
boolean getRedrawFlag (meshlib.ViewportMask viewportMask)
boolean isPickable (meshlib.ViewportMask viewportMask)
void setPickable (boolean on, meshlib.ViewportMask viewportMask)
meshlib.ColoringType getColoringType ()
void setColoringType (meshlib.ColoringType coloringType)
float getShininess ()
void setShininess (float shininess)
float getSpecularStrength ()
void setSpecularStrength (float specularStrength)
float getAmbientStrength ()
void setAmbientStrength (float ambientStrength)
meshlib.std_shared_ptr_MR_Object clone_2 ()
meshlib.std_shared_ptr_MR_Object shallowClone ()
boolean render (meshlib.ModelRenderParams _1)
void renderForPicker (meshlib.ModelBaseRenderParams _1, int _2)
void renderUi (meshlib.UiRenderParams params)
long heapBytes ()
meshlib.std_vector_std_string getInfoLines ()
boolean useDefaultScenePropertiesOnDeserialization ()
void setUseDefaultScenePropertiesOnDeserialization (boolean useDefaultScenePropertiesOnDeserialization)
void resetFrontColor ()
void resetColors ()
meshlib.std_string name ()
void setName (java.lang.String name)
meshlib.AffineXf3f xf (meshlib.ViewportId id, meshlib.bool_output isDef)
void setXf (meshlib.AffineXf3f xf, meshlib.ViewportId id)
void resetXf (meshlib.ViewportId id)
meshlib.ViewportProperty_MR_AffineXf3f xfsForAllViewports ()
void setXfsForAllViewports (meshlib.ViewportProperty_MR_AffineXf3f xf)
meshlib.AffineXf3f worldXf (meshlib.ViewportId id, meshlib.bool_output isDef)
void setWorldXf (meshlib.AffineXf3f xf, meshlib.ViewportId id)
void applyScale (float scaleFactor)
meshlib.ViewportMask globalVisibilityMask ()
boolean globalVisibility (meshlib.ViewportMask viewportMask)
void setGlobalVisibility (boolean on, meshlib.ViewportMask viewportMask)
boolean isLocked ()
void setLocked (boolean on)
boolean isParentLocked ()
void setParentLocked (boolean lock)
boolean isAncestor (meshlib.Object ancestor)
boolean detachFromParent ()
meshlib.ConstChildren constChildren ()
boolean addChild (meshlib.std_shared_ptr_MR_Object child, java.lang.Boolean recognizedChild)
boolean addChildBefore (meshlib.std_shared_ptr_MR_Object newChild, meshlib.std_shared_ptr_MR_Object existingChild)
void removeAllChildren ()
void sortChildren ()
boolean select (boolean on)
boolean isSelected ()
void setAncillary (boolean ancillary)
boolean isAncillary ()
boolean isGlobalAncillary ()
void setVisible (boolean on, meshlib.ViewportMask viewportMask)
boolean isVisible (meshlib.ViewportMask viewportMask)
void setVisibilityMask (meshlib.ViewportMask viewportMask)
meshlib.ViewportMask visibilityMask ()
void resetRedrawFlag ()
meshlib.std_shared_ptr_MR_Object cloneTree ()
meshlib.std_shared_ptr_MR_Object shallowCloneTree ()
void swap (meshlib.Object other)
meshlib.Box3f getWorldTreeBox (meshlib.ViewportId _1)
boolean hasVisualRepresentation ()
boolean hasModel ()
meshlib.std_set_std_string tags ()
boolean addTag (java.lang.String tag)
boolean removeTag (java.lang.String tag)
boolean sameModels (meshlib.Object other)
long getModelHash ()
meshlib.std_shared_ptr_MR_Object getSharedPtr ()
meshlib.ObjectChildrenHolder upcastToObjectChildrenHolder ()
meshlib.Object upcastToObject ()
Public Member Functions inherited from meshlib.CppObject
final java.lang.foreign.MemorySegment rawPointer ()
final boolean isOwned ()
final void close ()
final java.lang.foreign.MemorySegment release ()

Static Public Member Functions

static java.lang.Byte StaticTypeName ()
static java.lang.Byte StaticClassName ()
static java.lang.Byte StaticClassNameInPlural ()
static meshlib.VisualObject staticDowncastFromObjectChildrenHolder (meshlib.ObjectChildrenHolder object)
static meshlib.VisualObject staticDowncastFromObject (meshlib.Object object)
static meshlib.VisualObject dynamicDowncastFromObject (meshlib.Object object)

Additional Inherited Members

Protected Member Functions inherited from meshlib.CppObject
 CppObject (java.lang.foreign.MemorySegment ptr, java.util.function.Consumer< java.lang.foreign.MemorySegment > destroy, java.lang.Object owner)

Detailed Description

Visual Object Generated from class MR::VisualObject. Base classes: Direct: (non-virtual) MR::Object Indirect: (non-virtual) MR::ObjectChildrenHolder Derived classes: Direct: (non-virtual) MR::FeatureObject MR::MeasurementObject MR::ObjectLabel MR::ObjectLinesHolder MR::ObjectMeshHolder MR::ObjectPointsHolder Indirect: (non-virtual) MR::AddVisualProperties<MR::FeatureObject, MR::DimensionsVisualizePropertyType::diameter, MR::DimensionsVisualizePropertyType::angle, MR::DimensionsVisualizePropertyType::length> MR::AddVisualProperties<MR::FeatureObject, MR::DimensionsVisualizePropertyType::diameter, MR::DimensionsVisualizePropertyType::length> MR::AddVisualProperties<MR::FeatureObject, MR::DimensionsVisualizePropertyType::diameter> MR::AngleMeasurementObject MR::CircleObject MR::ConeObject MR::CylinderObject MR::DistanceMeasurementObject MR::LineObject MR::ObjectDistanceMap MR::ObjectGcode MR::ObjectLines MR::ObjectMesh MR::ObjectPoints MR::ObjectVoxels MR::PlaneObject MR::PointMeasurementObject MR::PointObject MR::RadiusMeasurementObject MR::SphereObject

Instances created here own their C++ objects, see CppObject.

Constructor & Destructor Documentation

◆ VisualObject() [1/3]

meshlib.VisualObject.VisualObject ( java.lang.foreign.MemorySegment ptr,
boolean owned,
java.lang.Object owner )

Wraps a pointer from the C bindings. If owned, the object is destroyed when the wrapper dies. owner is kept alive as long as this wrapper is. Not for normal use.

◆ VisualObject() [2/3]

meshlib.VisualObject.VisualObject ( )

Constructs an empty (default-constructed) instance.

Calls MR_VisualObject_DefaultConstruct().

◆ VisualObject() [3/3]

meshlib.VisualObject.VisualObject ( meshlib.VisualObject _other)

Generated from constructor MR::VisualObject::VisualObject. The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object.

Calls MR_VisualObject_ConstructFromAnother().

Member Function Documentation

◆ addChild()

boolean meshlib.VisualObject.addChild ( meshlib.std_shared_ptr_MR_Object child,
java.lang.Boolean recognizedChild )

adds given object at the end of children (recognized or not); returns false if it was already child of this, of if given pointer is empty; child object will always report this as parent after the call;

Parameters
recognizedChildif set to false then child object will be excluded from children() and it will be stored by weak_ptr Generated from method MR::VisualObject::addChild.

Calls MR_VisualObject_addChild().

◆ addChildBefore()

boolean meshlib.VisualObject.addChildBefore ( meshlib.std_shared_ptr_MR_Object newChild,
meshlib.std_shared_ptr_MR_Object existingChild )

adds given object in the recognized children before existingChild; if newChild was already among this children then moves it just before existingChild keeping the order of other children intact; returns false if newChild is nullptr, or existingChild is not a child of this Generated from method MR::VisualObject::addChildBefore.

Calls MR_VisualObject_addChildBefore().

◆ addTag()

boolean meshlib.VisualObject.addTag ( java.lang.String tag)

adds tag to the object's tag storage additionally calls ObjectTagManager::tagAddedSignal NOTE: tags starting with a dot are considered as service ones and might be hidden from UI Generated from method MR::VisualObject::addTag.

Calls MR_VisualObject_addTag().

◆ applyScale()

void meshlib.VisualObject.applyScale ( float scaleFactor)

scale object size (all point positions) Generated from method MR::VisualObject::applyScale.

Calls MR_VisualObject_applyScale().

◆ assignFromAnother()

meshlib.VisualObject meshlib.VisualObject.assignFromAnother ( meshlib.VisualObject _other)

Generated from method MR::VisualObject::operator=. The reference to things referred to by the parameter _other (if any) might be preserved in this object. The reference to this object might be preserved in the return value.

Calls MR_VisualObject_AssignFromAnother().

◆ className()

meshlib.std_string meshlib.VisualObject.className ( )

Generated from method MR::VisualObject::className.

Calls MR_VisualObject_className().

◆ classNameInPlural()

meshlib.std_string meshlib.VisualObject.classNameInPlural ( )

Generated from method MR::VisualObject::classNameInPlural.

Calls MR_VisualObject_classNameInPlural().

◆ clone_2()

meshlib.std_shared_ptr_MR_Object meshlib.VisualObject.clone_2 ( )

clones this object only, without its children, making new object the owner of all copied resources Generated from method MR::VisualObject::clone.

Calls MR_VisualObject_clone().

◆ cloneTree()

meshlib.std_shared_ptr_MR_Object meshlib.VisualObject.cloneTree ( )

clones all tree of this object (except ancillary and unrecognized children) Generated from method MR::VisualObject::cloneTree.

Calls MR_VisualObject_cloneTree().

◆ constChildren()

meshlib.ConstChildren meshlib.VisualObject.constChildren ( )

the same sub-objects without the ability to modify them; the returned view is invalidated by anything that changes the children of this object Generated from method MR::VisualObject::constChildren.

Calls MR_VisualObject_constChildren().

◆ copyAllSolidColors()

void meshlib.VisualObject.copyAllSolidColors ( meshlib.VisualObject other)

set all object solid colors (front/back/etc.) from other object for all viewports Generated from method MR::VisualObject::copyAllSolidColors.

Calls MR_VisualObject_copyAllSolidColors().

◆ detachFromParent()

boolean meshlib.VisualObject.detachFromParent ( )

removes this from its parent children list returns false if it was already orphan Generated from method MR::VisualObject::detachFromParent.

Calls MR_VisualObject_detachFromParent().

◆ dynamicDowncastFromObject()

meshlib.VisualObject meshlib.VisualObject.dynamicDowncastFromObject ( meshlib.Object object)
static

Dynamic downcast from the base class MR::Object. Returns null if the object isn't actually a VisualObject. The result refers to object.

Calls MR_VisualObject_MutableDynamicDowncastFrom_MR_Object().

◆ getAllVisualizeProperties()

meshlib.std_vector_MR_ViewportMask meshlib.VisualObject.getAllVisualizeProperties ( )

get all visualize properties masks Generated from method MR::VisualObject::getAllVisualizeProperties.

Calls MR_VisualObject_getAllVisualizeProperties().

◆ getAmbientStrength()

float meshlib.VisualObject.getAmbientStrength ( )

returns intensity of non-directional light Generated from method MR::VisualObject::getAmbientStrength.

Calls MR_VisualObject_getAmbientStrength().

◆ getBackColor()

meshlib.Color meshlib.VisualObject.getBackColor ( meshlib.ViewportId viewportId)

returns backward color of object in given viewport Generated from method MR::VisualObject::getBackColor.

Calls MR_VisualObject_getBackColor().

◆ getBackColorsForAllViewports()

meshlib.ViewportProperty_MR_Color meshlib.VisualObject.getBackColorsForAllViewports ( )

returns backward color of object in all viewports Generated from method MR::VisualObject::getBackColorsForAllViewports.

Calls MR_VisualObject_getBackColorsForAllViewports().

◆ getBoundingBox()

meshlib.Box3f meshlib.VisualObject.getBoundingBox ( )

returns cached bounding box of this object in local coordinates Generated from method MR::VisualObject::getBoundingBox.

Calls MR_VisualObject_getBoundingBox().

◆ getColoringType()

meshlib.ColoringType meshlib.VisualObject.getColoringType ( )

returns the current coloring mode of the object Generated from method MR::VisualObject::getColoringType.

Calls MR_VisualObject_getColoringType().

◆ getDirtyFlags()

int meshlib.VisualObject.getDirtyFlags ( )

returns current dirty flags for the object Generated from method MR::VisualObject::getDirtyFlags.

Calls MR_VisualObject_getDirtyFlags().

◆ getFrontColor()

meshlib.Color meshlib.VisualObject.getFrontColor ( java.lang.Boolean selected,
meshlib.ViewportId viewportId )

returns color of object when it is selected/not-selected (depending on argument) in given viewport Generated from method MR::VisualObject::getFrontColor.

Calls MR_VisualObject_getFrontColor().

◆ getFrontColorsForAllViewports()

meshlib.ViewportProperty_MR_Color meshlib.VisualObject.getFrontColorsForAllViewports ( java.lang.Boolean selected)

returns color of object when it is selected/not-selected (depending on argument) in all viewports Generated from method MR::VisualObject::getFrontColorsForAllViewports.

Calls MR_VisualObject_getFrontColorsForAllViewports().

◆ getGlobalAlpha()

byte meshlib.VisualObject.getGlobalAlpha ( meshlib.ViewportId viewportId)

returns global transparency alpha of object in given viewport Generated from method MR::VisualObject::getGlobalAlpha.

Calls MR_VisualObject_getGlobalAlpha().

◆ getGlobalAlphaForAllViewports()

meshlib.ViewportProperty_unsigned_char meshlib.VisualObject.getGlobalAlphaForAllViewports ( )

returns global transparency alpha of object in all viewports Generated from method MR::VisualObject::getGlobalAlphaForAllViewports.

Calls MR_VisualObject_getGlobalAlphaForAllViewports().

◆ getInfoLines()

meshlib.std_vector_std_string meshlib.VisualObject.getInfoLines ( )

return several info lines that can better describe the object in the UI Generated from method MR::VisualObject::getInfoLines.

Calls MR_VisualObject_getInfoLines().

◆ getModelHash()

long meshlib.VisualObject.getModelHash ( )

return hash of model (or hash object pointer if object has no model) Generated from method MR::VisualObject::getModelHash.

Calls MR_VisualObject_getModelHash().

◆ getRedrawFlag()

boolean meshlib.VisualObject.getRedrawFlag ( meshlib.ViewportMask viewportMask)

returns true if the object must be redrawn (due to dirty flags) in one of specified viewports Generated from method MR::VisualObject::getRedrawFlag.

Calls MR_VisualObject_getRedrawFlag().

◆ getSharedPtr()

meshlib.std_shared_ptr_MR_Object meshlib.VisualObject.getSharedPtr ( )

returns this Object as shared_ptr finds it among its parent's recognized children Generated from method MR::VisualObject::getSharedPtr.

Calls MR_VisualObject_getSharedPtr().

◆ getShininess()

float meshlib.VisualObject.getShininess ( )

returns the current shininess visual value Generated from method MR::VisualObject::getShininess.

Calls MR_VisualObject_getShininess().

◆ getSpecularStrength()

float meshlib.VisualObject.getSpecularStrength ( )

returns intensity of reflections Generated from method MR::VisualObject::getSpecularStrength.

Calls MR_VisualObject_getSpecularStrength().

◆ getVisualizeProperty()

boolean meshlib.VisualObject.getVisualizeProperty ( meshlib.AnyVisualizeMaskEnum type,
meshlib.ViewportMask viewportMask )

returns true if the property is set at least in one viewport specified by the mask Generated from method MR::VisualObject::getVisualizeProperty.

Calls MR_VisualObject_getVisualizeProperty().

◆ getVisualizePropertyMask()

meshlib.ViewportMask meshlib.VisualObject.getVisualizePropertyMask ( meshlib.AnyVisualizeMaskEnum type)

returns mask of viewports where given property is set Generated from method MR::VisualObject::getVisualizePropertyMask.

Calls MR_VisualObject_getVisualizePropertyMask().

◆ getWorldBox()

meshlib.Box3f meshlib.VisualObject.getWorldBox ( meshlib.ViewportId _1)

returns bounding box of this object in given viewport in world coordinates, to get world bounding box of the object with all child objects, please call Object.getWorldTreeBox method Generated from method MR::VisualObject::getWorldBox.

Calls MR_VisualObject_getWorldBox().

◆ getWorldTreeBox()

meshlib.Box3f meshlib.VisualObject.getWorldTreeBox ( meshlib.ViewportId _1)

returns bounding box of this object and all children visible in given (or default) viewport in world coordinates Generated from method MR::VisualObject::getWorldTreeBox.

Calls MR_VisualObject_getWorldTreeBox().

◆ globalClippedByPlane()

boolean meshlib.VisualObject.globalClippedByPlane ( meshlib.ViewportMask viewportMask)

returns true if this object or any of its parents is clipped by plane in any of given viewports Generated from method MR::VisualObject::globalClippedByPlane.

Calls MR_VisualObject_globalClippedByPlane().

◆ globalClippedByPlaneMask()

meshlib.ViewportMask meshlib.VisualObject.globalClippedByPlaneMask ( )

returns all viewports where this object or any of its parents is clipped by plane Generated from method MR::VisualObject::globalClippedByPlaneMask.

Calls MR_VisualObject_globalClippedByPlaneMask().

◆ globalVisibility()

boolean meshlib.VisualObject.globalVisibility ( meshlib.ViewportMask viewportMask)

returns true if this object is visible together with all its parents in any of given viewports Generated from method MR::VisualObject::globalVisibility.

Calls MR_VisualObject_globalVisibility().

◆ globalVisibilityMask()

meshlib.ViewportMask meshlib.VisualObject.globalVisibilityMask ( )

returns all viewports where this object is visible together with all its parents Generated from method MR::VisualObject::globalVisibilityMask.

Calls MR_VisualObject_globalVisibilityMask().

◆ hasModel()

boolean meshlib.VisualObject.hasModel ( )

does the object have any model available (but possibly empty), e.g. ObjectMesh has valid meshPtr() or ObjectPoints has valid pointCloudPtr() Generated from method MR::VisualObject::hasModel.

Calls MR_VisualObject_hasModel().

◆ hasVisualRepresentation()

boolean meshlib.VisualObject.hasVisualRepresentation ( )

does the object have any visual representation (visible points, triangles, edges, etc.), no considering child objects Generated from method MR::VisualObject::hasVisualRepresentation.

Calls MR_VisualObject_hasVisualRepresentation().

◆ heapBytes()

long meshlib.VisualObject.heapBytes ( )

returns the amount of memory this object occupies on heap Generated from method MR::VisualObject::heapBytes.

Calls MR_VisualObject_heapBytes().

◆ isAncestor()

boolean meshlib.VisualObject.isAncestor ( meshlib.Object ancestor)

return true if given object is ancestor of this one, false otherwise Generated from method MR::VisualObject::isAncestor.

Calls MR_VisualObject_isAncestor().

◆ isAncillary()

boolean meshlib.VisualObject.isAncillary ( )

Generated from method MR::VisualObject::isAncillary.

Calls MR_VisualObject_isAncillary().

◆ isGlobalAncillary()

boolean meshlib.VisualObject.isGlobalAncillary ( )

returns true if the object or any of its ancestors are ancillary Generated from method MR::VisualObject::isGlobalAncillary.

Calls MR_VisualObject_isGlobalAncillary().

◆ isLocked()

boolean meshlib.VisualObject.isLocked ( )

object properties lock for UI Generated from method MR::VisualObject::isLocked.

Calls MR_VisualObject_isLocked().

◆ isParentLocked()

boolean meshlib.VisualObject.isParentLocked ( )

If true, the scene tree GUI doesn't allow you to drag'n'drop this object into a different parent. Defaults to false. Generated from method MR::VisualObject::isParentLocked.

Calls MR_VisualObject_isParentLocked().

◆ isPickable()

boolean meshlib.VisualObject.isPickable ( meshlib.ViewportMask viewportMask)

whether the object can be picked (by mouse) in any of given viewports Generated from method MR::VisualObject::isPickable.

Calls MR_VisualObject_isPickable().

◆ isSelected()

boolean meshlib.VisualObject.isSelected ( )

Generated from method MR::VisualObject::isSelected.

Calls MR_VisualObject_isSelected().

◆ isVisible()

boolean meshlib.VisualObject.isVisible ( meshlib.ViewportMask viewportMask)

checks whether the object is visible in any of the viewports specified by the mask (by default in any viewport) Generated from method MR::VisualObject::isVisible.

Calls MR_VisualObject_isVisible().

◆ name()

meshlib.std_string meshlib.VisualObject.name ( )

Generated from method MR::VisualObject::name.

Calls MR_VisualObject_name().

◆ removeAllChildren()

void meshlib.VisualObject.removeAllChildren ( )

detaches all recognized children from this, keeping all unrecognized ones Generated from method MR::VisualObject::removeAllChildren.

Calls MR_VisualObject_removeAllChildren().

◆ removeTag()

boolean meshlib.VisualObject.removeTag ( java.lang.String tag)

removes tag from the object's tag storage additionally calls ObjectTagManager::tagRemovedSignal Generated from method MR::VisualObject::removeTag.

Calls MR_VisualObject_removeTag().

◆ render()

boolean meshlib.VisualObject.render ( meshlib.ModelRenderParams _1)

draws this object for visualization Returns true if something was drawn. Generated from method MR::VisualObject::render.

Calls MR_VisualObject_render().

◆ renderForPicker()

void meshlib.VisualObject.renderForPicker ( meshlib.ModelBaseRenderParams _1,
int _2 )

draws this object for picking Generated from method MR::VisualObject::renderForPicker.

Calls MR_VisualObject_renderForPicker().

◆ renderUi()

void meshlib.VisualObject.renderUi ( meshlib.UiRenderParams params)

draws this object for 2d UI Generated from method MR::VisualObject::renderUi.

Calls MR_VisualObject_renderUi().

◆ resetColors()

void meshlib.VisualObject.resetColors ( )

reset all object colors to their default values from the current theme Generated from method MR::VisualObject::resetColors.

Calls MR_VisualObject_resetColors().

◆ resetDirty()

void meshlib.VisualObject.resetDirty ( )

resets all dirty flags (except for cache flags that will be reset automatically on cache update) Generated from method MR::VisualObject::resetDirty.

Calls MR_VisualObject_resetDirty().

◆ resetDirtyExceptMask()

void meshlib.VisualObject.resetDirtyExceptMask ( int mask)

reset dirty flags without some specific bits (useful for lazy normals update) Generated from method MR::VisualObject::resetDirtyExceptMask.

Calls MR_VisualObject_resetDirtyExceptMask().

◆ resetFrontColor()

void meshlib.VisualObject.resetFrontColor ( )

reset basic object colors to their default values from the current theme Generated from method MR::VisualObject::resetFrontColor.

Calls MR_VisualObject_resetFrontColor().

◆ resetRedrawFlag()

void meshlib.VisualObject.resetRedrawFlag ( )

Generated from method MR::VisualObject::resetRedrawFlag.

Calls MR_VisualObject_resetRedrawFlag().

◆ resetXf()

void meshlib.VisualObject.resetXf ( meshlib.ViewportId id)

forgets specific transform in given viewport (or forgets all specific transforms for {} input) Generated from method MR::VisualObject::resetXf.

Calls MR_VisualObject_resetXf().

◆ sameModels()

boolean meshlib.VisualObject.sameModels ( meshlib.Object other)

return true if model of current object equals to model (the same) of other Generated from method MR::VisualObject::sameModels.

Calls MR_VisualObject_sameModels().

◆ select()

boolean meshlib.VisualObject.select ( boolean on)

selects the object, returns true if value changed, otherwise returns false Generated from method MR::VisualObject::select.

Calls MR_VisualObject_select().

◆ setAllVisualizeProperties()

void meshlib.VisualObject.setAllVisualizeProperties ( meshlib.std_vector_MR_ViewportMask properties)

set all visualize properties masks Generated from method MR::VisualObject::setAllVisualizeProperties.

Calls MR_VisualObject_setAllVisualizeProperties().

◆ setAmbientStrength()

void meshlib.VisualObject.setAmbientStrength ( float ambientStrength)

sets intensity of non-directional light Generated from method MR::VisualObject::setAmbientStrength.

Calls MR_VisualObject_setAmbientStrength().

◆ setAncillary()

void meshlib.VisualObject.setAncillary ( boolean ancillary)

ancillary object is an object hidden (in scene menu) from a regular user such objects cannot be selected, and if it has been selected, it is unselected when turn ancillary Generated from method MR::VisualObject::setAncillary.

Calls MR_VisualObject_setAncillary().

◆ setBackColor()

void meshlib.VisualObject.setBackColor ( meshlib.Color color,
meshlib.ViewportId viewportId )

sets backward color of object in given viewport Generated from method MR::VisualObject::setBackColor.

Calls MR_VisualObject_setBackColor().

◆ setBackColorsForAllViewports()

void meshlib.VisualObject.setBackColorsForAllViewports ( meshlib.ViewportProperty_MR_Color val)

sets backward color of object in all viewports Generated from method MR::VisualObject::setBackColorsForAllViewports.

Calls MR_VisualObject_setBackColorsForAllViewports().

◆ setColoringType()

void meshlib.VisualObject.setColoringType ( meshlib.ColoringType coloringType)

sets coloring mode of the object with given argument Generated from method MR::VisualObject::setColoringType.

Calls MR_VisualObject_setColoringType().

◆ setDirtyFlags()

void meshlib.VisualObject.setDirtyFlags ( int mask,
java.lang.Boolean invalidateCaches )

sets some dirty flags for the object (to force its visual update)

Parameters
maskis a union of DirtyFlags flags
invalidateCacheswhether to automatically invalidate model caches (pass false here if you manually update the caches) Generated from method MR::VisualObject::setDirtyFlags.

Calls MR_VisualObject_setDirtyFlags().

◆ setFrontColor()

void meshlib.VisualObject.setFrontColor ( meshlib.Color color,
boolean selected,
meshlib.ViewportId viewportId )

sets color of object when it is selected/not-selected (depending on argument) in given viewport Generated from method MR::VisualObject::setFrontColor.

Calls MR_VisualObject_setFrontColor().

◆ setFrontColorsForAllViewports()

void meshlib.VisualObject.setFrontColorsForAllViewports ( meshlib.ViewportProperty_MR_Color val,
java.lang.Boolean selected )

sets color of object when it is selected/not-selected (depending on argument) in all viewports Generated from method MR::VisualObject::setFrontColorsForAllViewports.

Calls MR_VisualObject_setFrontColorsForAllViewports().

◆ setGlobalAlpha()

void meshlib.VisualObject.setGlobalAlpha ( byte alpha,
meshlib.ViewportId viewportId )

sets global transparency alpha of object in given viewport Generated from method MR::VisualObject::setGlobalAlpha.

Calls MR_VisualObject_setGlobalAlpha().

◆ setGlobalAlphaForAllViewports()

void meshlib.VisualObject.setGlobalAlphaForAllViewports ( meshlib.ViewportProperty_unsigned_char val)

sets global transparency alpha of object in all viewports Generated from method MR::VisualObject::setGlobalAlphaForAllViewports.

Calls MR_VisualObject_setGlobalAlphaForAllViewports().

◆ setGlobalClippedByPlane()

void meshlib.VisualObject.setGlobalClippedByPlane ( boolean on,
meshlib.ViewportMask viewportMask )

if false deactivates clipped-by-plane for this object and all of its parents, otherwise sets clipped-by-plane for this this object only Generated from method MR::VisualObject::setGlobalClippedByPlane.

Calls MR_VisualObject_setGlobalClippedByPlane().

◆ setGlobalVisibility()

void meshlib.VisualObject.setGlobalVisibility ( boolean on,
meshlib.ViewportMask viewportMask )

if true sets all predecessors visible, otherwise sets this object invisible Generated from method MR::VisualObject::setGlobalVisibility.

Calls MR_VisualObject_setGlobalVisibility().

◆ setLocked()

void meshlib.VisualObject.setLocked ( boolean on)

Generated from method MR::VisualObject::setLocked.

Calls MR_VisualObject_setLocked().

◆ setName()

void meshlib.VisualObject.setName ( java.lang.String name)

Generated from method MR::VisualObject::setName.

Calls MR_VisualObject_setName().

◆ setParentLocked()

void meshlib.VisualObject.setParentLocked ( boolean lock)

Generated from method MR::VisualObject::setParentLocked.

Calls MR_VisualObject_setParentLocked().

◆ setPickable()

void meshlib.VisualObject.setPickable ( boolean on,
meshlib.ViewportMask viewportMask )

sets the object as can/cannot be picked (by mouse) in all of given viewports Generated from method MR::VisualObject::setPickable.

Calls MR_VisualObject_setPickable().

◆ setShininess()

void meshlib.VisualObject.setShininess ( float shininess)

sets shininess visual value of the object with given argument Generated from method MR::VisualObject::setShininess.

Calls MR_VisualObject_setShininess().

◆ setSpecularStrength()

void meshlib.VisualObject.setSpecularStrength ( float specularStrength)

sets intensity of reflections Generated from method MR::VisualObject::setSpecularStrength.

Calls MR_VisualObject_setSpecularStrength().

◆ setUseDefaultScenePropertiesOnDeserialization()

void meshlib.VisualObject.setUseDefaultScenePropertiesOnDeserialization ( boolean useDefaultScenePropertiesOnDeserialization)

set whether the scene-related properties should get their values from SceneColors and SceneSettings instances rather than from the input data on deserialization Generated from method MR::VisualObject::setUseDefaultScenePropertiesOnDeserialization.

Calls MR_VisualObject_setUseDefaultScenePropertiesOnDeserialization().

◆ setVisibilityMask()

void meshlib.VisualObject.setVisibilityMask ( meshlib.ViewportMask viewportMask)

specifies object visibility as bitmask of viewports Generated from method MR::VisualObject::setVisibilityMask.

Calls MR_VisualObject_setVisibilityMask().

◆ setVisible()

void meshlib.VisualObject.setVisible ( boolean on,
meshlib.ViewportMask viewportMask )

sets the object visible in the viewports specified by the mask (by default in all viewports) Generated from method MR::VisualObject::setVisible.

Calls MR_VisualObject_setVisible().

◆ setVisualizeProperty()

void meshlib.VisualObject.setVisualizeProperty ( boolean value,
meshlib.AnyVisualizeMaskEnum type,
meshlib.ViewportMask viewportMask )

set visual property in all viewports specified by the mask Generated from method MR::VisualObject::setVisualizeProperty.

Calls MR_VisualObject_setVisualizeProperty().

◆ setVisualizePropertyMask()

void meshlib.VisualObject.setVisualizePropertyMask ( meshlib.AnyVisualizeMaskEnum type,
meshlib.ViewportMask viewportMask )

set visual property mask Generated from method MR::VisualObject::setVisualizePropertyMask.

Calls MR_VisualObject_setVisualizePropertyMask().

◆ setWorldXf()

void meshlib.VisualObject.setWorldXf ( meshlib.AffineXf3f xf,
meshlib.ViewportId id )

Generated from method MR::VisualObject::setWorldXf.

Calls MR_VisualObject_setWorldXf().

◆ setXf()

void meshlib.VisualObject.setXf ( meshlib.AffineXf3f xf,
meshlib.ViewportId id )

Generated from method MR::VisualObject::setXf.

Calls MR_VisualObject_setXf().

◆ setXfsForAllViewports()

void meshlib.VisualObject.setXfsForAllViewports ( meshlib.ViewportProperty_MR_AffineXf3f xf)

modifies xfs for all viewports at once Generated from method MR::VisualObject::setXfsForAllViewports.

Calls MR_VisualObject_setXfsForAllViewports().

◆ shallowClone()

meshlib.std_shared_ptr_MR_Object meshlib.VisualObject.shallowClone ( )

clones this object only, without its children, making new object to share resources with this object Generated from method MR::VisualObject::shallowClone.

Calls MR_VisualObject_shallowClone().

◆ shallowCloneTree()

meshlib.std_shared_ptr_MR_Object meshlib.VisualObject.shallowCloneTree ( )

clones all tree of this object (except ancillary and unrecognied children) clones only pointers to mesh, points or voxels Generated from method MR::VisualObject::shallowCloneTree.

Calls MR_VisualObject_shallowCloneTree().

◆ showName() [1/2]

boolean meshlib.VisualObject.showName ( )

returns whether object name is shown in any viewport Generated from method MR::VisualObject::showName.

Calls MR_VisualObject_showName().

◆ showName() [2/2]

void meshlib.VisualObject.showName ( boolean on)

shows/hides object name in all viewports Generated from method MR::VisualObject::showName.

Calls MR_VisualObject_showName_mut().

◆ sortChildren()

void meshlib.VisualObject.sortChildren ( )

sort recognized children by name Generated from method MR::VisualObject::sortChildren.

Calls MR_VisualObject_sortChildren().

◆ StaticClassName()

java.lang.Byte meshlib.VisualObject.StaticClassName ( )
static

Generated from method MR::VisualObject::StaticClassName.

Calls MR_VisualObject_StaticClassName().

◆ StaticClassNameInPlural()

java.lang.Byte meshlib.VisualObject.StaticClassNameInPlural ( )
static

Generated from method MR::VisualObject::StaticClassNameInPlural.

Calls MR_VisualObject_StaticClassNameInPlural().

◆ staticDowncastFromObject()

meshlib.VisualObject meshlib.VisualObject.staticDowncastFromObject ( meshlib.Object object)
static

Static downcast from the base class MR::Object. Undefined behavior if the object isn't actually a VisualObject. The result refers to object.

Calls MR_VisualObject_MutableStaticDowncastFrom_MR_Object().

◆ staticDowncastFromObjectChildrenHolder()

meshlib.VisualObject meshlib.VisualObject.staticDowncastFromObjectChildrenHolder ( meshlib.ObjectChildrenHolder object)
static

Static downcast from the base class MR::ObjectChildrenHolder. Undefined behavior if the object isn't actually a VisualObject. The result refers to object.

Calls MR_VisualObject_MutableStaticDowncastFrom_MR_ObjectChildrenHolder().

◆ StaticTypeName()

java.lang.Byte meshlib.VisualObject.StaticTypeName ( )
static

Generated from method MR::VisualObject::StaticTypeName.

Calls MR_VisualObject_StaticTypeName().

◆ supportsVisualizeProperty()

boolean meshlib.VisualObject.supportsVisualizeProperty ( meshlib.AnyVisualizeMaskEnum type)

Returns true if this class supports the property type. Otherwise passing it to the functions below is illegal. Generated from method MR::VisualObject::supportsVisualizeProperty.

Calls MR_VisualObject_supportsVisualizeProperty().

◆ swap()

void meshlib.VisualObject.swap ( meshlib.Object other)

swaps this object with other note: do not swap object signals, so listeners will get notifications from swapped object requires implementation of swapBase_ and swapSignals_ (if type has signals) Generated from method MR::VisualObject::swap.

Calls MR_VisualObject_swap().

◆ tags()

meshlib.std_set_std_string meshlib.VisualObject.tags ( )

provides read-only access to the tag storage the storage is a set of unique strings Generated from method MR::VisualObject::tags.

Calls MR_VisualObject_tags().

◆ toggleVisualizeProperty()

void meshlib.VisualObject.toggleVisualizeProperty ( meshlib.AnyVisualizeMaskEnum type,
meshlib.ViewportMask viewportMask )

toggle visual property in all viewports specified by the mask Generated from method MR::VisualObject::toggleVisualizeProperty.

Calls MR_VisualObject_toggleVisualizeProperty().

◆ typeName()

java.lang.Byte meshlib.VisualObject.typeName ( )

Generated from method MR::VisualObject::typeName.

Calls MR_VisualObject_typeName().

◆ upcastToObject()

meshlib.Object meshlib.VisualObject.upcastToObject ( )

Upcasts to the base class MR::Object. The result refers to this object.

Calls MR_VisualObject_MutableUpcastTo_MR_Object().

◆ upcastToObjectChildrenHolder()

meshlib.ObjectChildrenHolder meshlib.VisualObject.upcastToObjectChildrenHolder ( )

Upcasts to the base class MR::ObjectChildrenHolder. The result refers to this object.

Calls MR_VisualObject_MutableUpcastTo_MR_ObjectChildrenHolder().

◆ useDefaultScenePropertiesOnDeserialization()

boolean meshlib.VisualObject.useDefaultScenePropertiesOnDeserialization ( )

whether the scene-related properties should get their values from SceneColors and SceneSettings instances rather than from the input data on deserialization Generated from method MR::VisualObject::useDefaultScenePropertiesOnDeserialization.

Calls MR_VisualObject_useDefaultScenePropertiesOnDeserialization().

◆ visibilityMask()

meshlib.ViewportMask meshlib.VisualObject.visibilityMask ( )

gets object visibility as bitmask of viewports Generated from method MR::VisualObject::visibilityMask.

Calls MR_VisualObject_visibilityMask().

◆ worldXf()

meshlib.AffineXf3f meshlib.VisualObject.worldXf ( meshlib.ViewportId id,
meshlib.bool_output isDef )

this space to world space transformation for default or specific viewport

Parameters
isDefreceives true if the object has default transformation in this viewport (same as worldXf() returns) Generated from method MR::VisualObject::worldXf.

Calls MR_VisualObject_worldXf().

◆ xf()

meshlib.AffineXf3f meshlib.VisualObject.xf ( meshlib.ViewportId id,
meshlib.bool_output isDef )

this space to parent space transformation (to world space if no parent) for default or given viewport

Parameters
isDefreceives true if the object has default transformation in this viewport (same as xf() returns) Generated from method MR::VisualObject::xf.

Calls MR_VisualObject_xf().

◆ xfsForAllViewports()

meshlib.ViewportProperty_MR_AffineXf3f meshlib.VisualObject.xfsForAllViewports ( )

returns xfs for all viewports, combined into a single object Generated from method MR::VisualObject::xfsForAllViewports.

Calls MR_VisualObject_xfsForAllViewports().


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