MeshLib Java Docs
Loading...
Searching...
No Matches
meshlib.MeasurementObject Class Reference
Inheritance diagram for meshlib.MeasurementObject:

Public Member Functions

 MeasurementObject (java.lang.foreign.MemorySegment ptr, boolean owned, java.lang.Object owner)
 MeasurementObject (meshlib.MeasurementObject _other)
meshlib.MeasurementObject assignFromAnother (meshlib.MeasurementObject _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)
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 ()
meshlib.VisualObject upcastToVisualObject ()
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.MeasurementObject staticDowncastFromObjectChildrenHolder (meshlib.ObjectChildrenHolder object)
static meshlib.MeasurementObject staticDowncastFromObject (meshlib.Object object)
static meshlib.MeasurementObject dynamicDowncastFromObject (meshlib.Object object)
static meshlib.MeasurementObject staticDowncastFromVisualObject (meshlib.VisualObject object)
static meshlib.MeasurementObject dynamicDowncastFromVisualObject (meshlib.VisualObject 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

A common base class for measurement objects. Can't be constructed directly. Generated from class MR::MeasurementObject. Base classes: Direct: (non-virtual) MR::VisualObject Indirect: (non-virtual) MR::ObjectChildrenHolder MR::Object Derived classes: Direct: (non-virtual) MR::AngleMeasurementObject MR::DistanceMeasurementObject MR::PointMeasurementObject MR::RadiusMeasurementObject

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

Constructor & Destructor Documentation

◆ MeasurementObject() [1/2]

meshlib.MeasurementObject.MeasurementObject ( 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.

◆ MeasurementObject() [2/2]

meshlib.MeasurementObject.MeasurementObject ( meshlib.MeasurementObject _other)

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

Calls MR_MeasurementObject_ConstructFromAnother().

Member Function Documentation

◆ addChild()

boolean meshlib.MeasurementObject.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::MeasurementObject::addChild.

Calls MR_MeasurementObject_addChild().

◆ addChildBefore()

boolean meshlib.MeasurementObject.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::MeasurementObject::addChildBefore.

Calls MR_MeasurementObject_addChildBefore().

◆ addTag()

boolean meshlib.MeasurementObject.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::MeasurementObject::addTag.

Calls MR_MeasurementObject_addTag().

◆ applyScale()

void meshlib.MeasurementObject.applyScale ( float scaleFactor)

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

Calls MR_MeasurementObject_applyScale().

◆ assignFromAnother()

meshlib.MeasurementObject meshlib.MeasurementObject.assignFromAnother ( meshlib.MeasurementObject _other)

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

Calls MR_MeasurementObject_AssignFromAnother().

◆ className()

meshlib.std_string meshlib.MeasurementObject.className ( )

Generated from method MR::MeasurementObject::className.

Calls MR_MeasurementObject_className().

◆ classNameInPlural()

meshlib.std_string meshlib.MeasurementObject.classNameInPlural ( )

Generated from method MR::MeasurementObject::classNameInPlural.

Calls MR_MeasurementObject_classNameInPlural().

◆ clone_2()

meshlib.std_shared_ptr_MR_Object meshlib.MeasurementObject.clone_2 ( )

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

Calls MR_MeasurementObject_clone().

◆ cloneTree()

meshlib.std_shared_ptr_MR_Object meshlib.MeasurementObject.cloneTree ( )

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

Calls MR_MeasurementObject_cloneTree().

◆ constChildren()

meshlib.ConstChildren meshlib.MeasurementObject.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::MeasurementObject::constChildren.

Calls MR_MeasurementObject_constChildren().

◆ copyAllSolidColors()

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

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

Calls MR_MeasurementObject_copyAllSolidColors().

◆ detachFromParent()

boolean meshlib.MeasurementObject.detachFromParent ( )

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

Calls MR_MeasurementObject_detachFromParent().

◆ dynamicDowncastFromObject()

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

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

Calls MR_MeasurementObject_MutableDynamicDowncastFrom_MR_Object().

◆ dynamicDowncastFromVisualObject()

meshlib.MeasurementObject meshlib.MeasurementObject.dynamicDowncastFromVisualObject ( meshlib.VisualObject object)
static

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

Calls MR_MeasurementObject_MutableDynamicDowncastFrom_MR_VisualObject().

◆ getAllVisualizeProperties()

meshlib.std_vector_MR_ViewportMask meshlib.MeasurementObject.getAllVisualizeProperties ( )

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

Calls MR_MeasurementObject_getAllVisualizeProperties().

◆ getAmbientStrength()

float meshlib.MeasurementObject.getAmbientStrength ( )

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

Calls MR_MeasurementObject_getAmbientStrength().

◆ getBackColor()

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

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

Calls MR_MeasurementObject_getBackColor().

◆ getBackColorsForAllViewports()

meshlib.ViewportProperty_MR_Color meshlib.MeasurementObject.getBackColorsForAllViewports ( )

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

Calls MR_MeasurementObject_getBackColorsForAllViewports().

◆ getBoundingBox()

meshlib.Box3f meshlib.MeasurementObject.getBoundingBox ( )

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

Calls MR_MeasurementObject_getBoundingBox().

◆ getColoringType()

meshlib.ColoringType meshlib.MeasurementObject.getColoringType ( )

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

Calls MR_MeasurementObject_getColoringType().

◆ getDirtyFlags()

int meshlib.MeasurementObject.getDirtyFlags ( )

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

Calls MR_MeasurementObject_getDirtyFlags().

◆ getFrontColor()

meshlib.Color meshlib.MeasurementObject.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::MeasurementObject::getFrontColor.

Calls MR_MeasurementObject_getFrontColor().

◆ getFrontColorsForAllViewports()

meshlib.ViewportProperty_MR_Color meshlib.MeasurementObject.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::MeasurementObject::getFrontColorsForAllViewports.

Calls MR_MeasurementObject_getFrontColorsForAllViewports().

◆ getGlobalAlpha()

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

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

Calls MR_MeasurementObject_getGlobalAlpha().

◆ getGlobalAlphaForAllViewports()

meshlib.ViewportProperty_unsigned_char meshlib.MeasurementObject.getGlobalAlphaForAllViewports ( )

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

Calls MR_MeasurementObject_getGlobalAlphaForAllViewports().

◆ getInfoLines()

meshlib.std_vector_std_string meshlib.MeasurementObject.getInfoLines ( )

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

Calls MR_MeasurementObject_getInfoLines().

◆ getModelHash()

long meshlib.MeasurementObject.getModelHash ( )

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

Calls MR_MeasurementObject_getModelHash().

◆ getRedrawFlag()

boolean meshlib.MeasurementObject.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::MeasurementObject::getRedrawFlag.

Calls MR_MeasurementObject_getRedrawFlag().

◆ getSharedPtr()

meshlib.std_shared_ptr_MR_Object meshlib.MeasurementObject.getSharedPtr ( )

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

Calls MR_MeasurementObject_getSharedPtr().

◆ getShininess()

float meshlib.MeasurementObject.getShininess ( )

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

Calls MR_MeasurementObject_getShininess().

◆ getSpecularStrength()

float meshlib.MeasurementObject.getSpecularStrength ( )

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

Calls MR_MeasurementObject_getSpecularStrength().

◆ getVisualizeProperty()

boolean meshlib.MeasurementObject.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::MeasurementObject::getVisualizeProperty.

Calls MR_MeasurementObject_getVisualizeProperty().

◆ getVisualizePropertyMask()

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

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

Calls MR_MeasurementObject_getVisualizePropertyMask().

◆ getWorldBox()

meshlib.Box3f meshlib.MeasurementObject.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::MeasurementObject::getWorldBox.

Calls MR_MeasurementObject_getWorldBox().

◆ getWorldTreeBox()

meshlib.Box3f meshlib.MeasurementObject.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::MeasurementObject::getWorldTreeBox.

Calls MR_MeasurementObject_getWorldTreeBox().

◆ globalClippedByPlane()

boolean meshlib.MeasurementObject.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::MeasurementObject::globalClippedByPlane.

Calls MR_MeasurementObject_globalClippedByPlane().

◆ globalClippedByPlaneMask()

meshlib.ViewportMask meshlib.MeasurementObject.globalClippedByPlaneMask ( )

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

Calls MR_MeasurementObject_globalClippedByPlaneMask().

◆ globalVisibility()

boolean meshlib.MeasurementObject.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::MeasurementObject::globalVisibility.

Calls MR_MeasurementObject_globalVisibility().

◆ globalVisibilityMask()

meshlib.ViewportMask meshlib.MeasurementObject.globalVisibilityMask ( )

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

Calls MR_MeasurementObject_globalVisibilityMask().

◆ hasModel()

boolean meshlib.MeasurementObject.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::MeasurementObject::hasModel.

Calls MR_MeasurementObject_hasModel().

◆ hasVisualRepresentation()

boolean meshlib.MeasurementObject.hasVisualRepresentation ( )

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

Calls MR_MeasurementObject_hasVisualRepresentation().

◆ heapBytes()

long meshlib.MeasurementObject.heapBytes ( )

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

Calls MR_MeasurementObject_heapBytes().

◆ isAncestor()

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

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

Calls MR_MeasurementObject_isAncestor().

◆ isAncillary()

boolean meshlib.MeasurementObject.isAncillary ( )

Generated from method MR::MeasurementObject::isAncillary.

Calls MR_MeasurementObject_isAncillary().

◆ isGlobalAncillary()

boolean meshlib.MeasurementObject.isGlobalAncillary ( )

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

Calls MR_MeasurementObject_isGlobalAncillary().

◆ isLocked()

boolean meshlib.MeasurementObject.isLocked ( )

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

Calls MR_MeasurementObject_isLocked().

◆ isParentLocked()

boolean meshlib.MeasurementObject.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::MeasurementObject::isParentLocked.

Calls MR_MeasurementObject_isParentLocked().

◆ isPickable()

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

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

Calls MR_MeasurementObject_isPickable().

◆ isSelected()

boolean meshlib.MeasurementObject.isSelected ( )

Generated from method MR::MeasurementObject::isSelected.

Calls MR_MeasurementObject_isSelected().

◆ isVisible()

boolean meshlib.MeasurementObject.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::MeasurementObject::isVisible.

Calls MR_MeasurementObject_isVisible().

◆ name()

meshlib.std_string meshlib.MeasurementObject.name ( )

Generated from method MR::MeasurementObject::name.

Calls MR_MeasurementObject_name().

◆ removeAllChildren()

void meshlib.MeasurementObject.removeAllChildren ( )

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

Calls MR_MeasurementObject_removeAllChildren().

◆ removeTag()

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

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

Calls MR_MeasurementObject_removeTag().

◆ render()

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

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

Calls MR_MeasurementObject_render().

◆ renderForPicker()

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

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

Calls MR_MeasurementObject_renderForPicker().

◆ renderUi()

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

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

Calls MR_MeasurementObject_renderUi().

◆ resetColors()

void meshlib.MeasurementObject.resetColors ( )

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

Calls MR_MeasurementObject_resetColors().

◆ resetDirty()

void meshlib.MeasurementObject.resetDirty ( )

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

Calls MR_MeasurementObject_resetDirty().

◆ resetDirtyExceptMask()

void meshlib.MeasurementObject.resetDirtyExceptMask ( int mask)

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

Calls MR_MeasurementObject_resetDirtyExceptMask().

◆ resetFrontColor()

void meshlib.MeasurementObject.resetFrontColor ( )

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

Calls MR_MeasurementObject_resetFrontColor().

◆ resetRedrawFlag()

void meshlib.MeasurementObject.resetRedrawFlag ( )

Generated from method MR::MeasurementObject::resetRedrawFlag.

Calls MR_MeasurementObject_resetRedrawFlag().

◆ resetXf()

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

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

Calls MR_MeasurementObject_resetXf().

◆ sameModels()

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

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

Calls MR_MeasurementObject_sameModels().

◆ select()

boolean meshlib.MeasurementObject.select ( boolean on)

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

Calls MR_MeasurementObject_select().

◆ setAllVisualizeProperties()

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

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

Calls MR_MeasurementObject_setAllVisualizeProperties().

◆ setAmbientStrength()

void meshlib.MeasurementObject.setAmbientStrength ( float ambientStrength)

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

Calls MR_MeasurementObject_setAmbientStrength().

◆ setAncillary()

void meshlib.MeasurementObject.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::MeasurementObject::setAncillary.

Calls MR_MeasurementObject_setAncillary().

◆ setBackColor()

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

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

Calls MR_MeasurementObject_setBackColor().

◆ setBackColorsForAllViewports()

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

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

Calls MR_MeasurementObject_setBackColorsForAllViewports().

◆ setColoringType()

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

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

Calls MR_MeasurementObject_setColoringType().

◆ setDirtyFlags()

void meshlib.MeasurementObject.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::MeasurementObject::setDirtyFlags.

Calls MR_MeasurementObject_setDirtyFlags().

◆ setFrontColor()

void meshlib.MeasurementObject.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::MeasurementObject::setFrontColor.

Calls MR_MeasurementObject_setFrontColor().

◆ setFrontColorsForAllViewports()

void meshlib.MeasurementObject.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::MeasurementObject::setFrontColorsForAllViewports.

Calls MR_MeasurementObject_setFrontColorsForAllViewports().

◆ setGlobalAlpha()

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

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

Calls MR_MeasurementObject_setGlobalAlpha().

◆ setGlobalAlphaForAllViewports()

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

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

Calls MR_MeasurementObject_setGlobalAlphaForAllViewports().

◆ setGlobalClippedByPlane()

void meshlib.MeasurementObject.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::MeasurementObject::setGlobalClippedByPlane.

Calls MR_MeasurementObject_setGlobalClippedByPlane().

◆ setGlobalVisibility()

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

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

Calls MR_MeasurementObject_setGlobalVisibility().

◆ setLocked()

void meshlib.MeasurementObject.setLocked ( boolean on)

Generated from method MR::MeasurementObject::setLocked.

Calls MR_MeasurementObject_setLocked().

◆ setName()

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

Generated from method MR::MeasurementObject::setName.

Calls MR_MeasurementObject_setName().

◆ setParentLocked()

void meshlib.MeasurementObject.setParentLocked ( boolean lock)

Generated from method MR::MeasurementObject::setParentLocked.

Calls MR_MeasurementObject_setParentLocked().

◆ setPickable()

void meshlib.MeasurementObject.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::MeasurementObject::setPickable.

Calls MR_MeasurementObject_setPickable().

◆ setShininess()

void meshlib.MeasurementObject.setShininess ( float shininess)

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

Calls MR_MeasurementObject_setShininess().

◆ setSpecularStrength()

void meshlib.MeasurementObject.setSpecularStrength ( float specularStrength)

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

Calls MR_MeasurementObject_setSpecularStrength().

◆ setUseDefaultScenePropertiesOnDeserialization()

void meshlib.MeasurementObject.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::MeasurementObject::setUseDefaultScenePropertiesOnDeserialization.

Calls MR_MeasurementObject_setUseDefaultScenePropertiesOnDeserialization().

◆ setVisibilityMask()

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

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

Calls MR_MeasurementObject_setVisibilityMask().

◆ setVisible()

void meshlib.MeasurementObject.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::MeasurementObject::setVisible.

Calls MR_MeasurementObject_setVisible().

◆ setVisualizeProperty()

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

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

Calls MR_MeasurementObject_setVisualizeProperty().

◆ setVisualizePropertyMask()

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

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

Calls MR_MeasurementObject_setVisualizePropertyMask().

◆ setWorldXf()

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

Generated from method MR::MeasurementObject::setWorldXf.

Calls MR_MeasurementObject_setWorldXf().

◆ setXf()

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

Generated from method MR::MeasurementObject::setXf.

Calls MR_MeasurementObject_setXf().

◆ setXfsForAllViewports()

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

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

Calls MR_MeasurementObject_setXfsForAllViewports().

◆ shallowClone()

meshlib.std_shared_ptr_MR_Object meshlib.MeasurementObject.shallowClone ( )

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

Calls MR_MeasurementObject_shallowClone().

◆ shallowCloneTree()

meshlib.std_shared_ptr_MR_Object meshlib.MeasurementObject.shallowCloneTree ( )

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

Calls MR_MeasurementObject_shallowCloneTree().

◆ sortChildren()

void meshlib.MeasurementObject.sortChildren ( )

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

Calls MR_MeasurementObject_sortChildren().

◆ StaticClassName()

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

Generated from method MR::MeasurementObject::StaticClassName.

Calls MR_MeasurementObject_StaticClassName().

◆ StaticClassNameInPlural()

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

Generated from method MR::MeasurementObject::StaticClassNameInPlural.

Calls MR_MeasurementObject_StaticClassNameInPlural().

◆ staticDowncastFromObject()

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

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

Calls MR_MeasurementObject_MutableStaticDowncastFrom_MR_Object().

◆ staticDowncastFromObjectChildrenHolder()

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

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

Calls MR_MeasurementObject_MutableStaticDowncastFrom_MR_ObjectChildrenHolder().

◆ staticDowncastFromVisualObject()

meshlib.MeasurementObject meshlib.MeasurementObject.staticDowncastFromVisualObject ( meshlib.VisualObject object)
static

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

Calls MR_MeasurementObject_MutableStaticDowncastFrom_MR_VisualObject().

◆ StaticTypeName()

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

Generated from method MR::MeasurementObject::StaticTypeName.

Calls MR_MeasurementObject_StaticTypeName().

◆ supportsVisualizeProperty()

boolean meshlib.MeasurementObject.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::MeasurementObject::supportsVisualizeProperty.

Calls MR_MeasurementObject_supportsVisualizeProperty().

◆ swap()

void meshlib.MeasurementObject.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::MeasurementObject::swap.

Calls MR_MeasurementObject_swap().

◆ tags()

meshlib.std_set_std_string meshlib.MeasurementObject.tags ( )

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

Calls MR_MeasurementObject_tags().

◆ toggleVisualizeProperty()

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

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

Calls MR_MeasurementObject_toggleVisualizeProperty().

◆ typeName()

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

Generated from method MR::MeasurementObject::typeName.

Calls MR_MeasurementObject_typeName().

◆ upcastToObject()

meshlib.Object meshlib.MeasurementObject.upcastToObject ( )

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

Calls MR_MeasurementObject_MutableUpcastTo_MR_Object().

◆ upcastToObjectChildrenHolder()

meshlib.ObjectChildrenHolder meshlib.MeasurementObject.upcastToObjectChildrenHolder ( )

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

Calls MR_MeasurementObject_MutableUpcastTo_MR_ObjectChildrenHolder().

◆ upcastToVisualObject()

meshlib.VisualObject meshlib.MeasurementObject.upcastToVisualObject ( )

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

Calls MR_MeasurementObject_MutableUpcastTo_MR_VisualObject().

◆ useDefaultScenePropertiesOnDeserialization()

boolean meshlib.MeasurementObject.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::MeasurementObject::useDefaultScenePropertiesOnDeserialization.

Calls MR_MeasurementObject_useDefaultScenePropertiesOnDeserialization().

◆ visibilityMask()

meshlib.ViewportMask meshlib.MeasurementObject.visibilityMask ( )

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

Calls MR_MeasurementObject_visibilityMask().

◆ worldXf()

meshlib.AffineXf3f meshlib.MeasurementObject.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::MeasurementObject::worldXf.

Calls MR_MeasurementObject_worldXf().

◆ xf()

meshlib.AffineXf3f meshlib.MeasurementObject.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::MeasurementObject::xf.

Calls MR_MeasurementObject_xf().

◆ xfsForAllViewports()

meshlib.ViewportProperty_MR_AffineXf3f meshlib.MeasurementObject.xfsForAllViewports ( )

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

Calls MR_MeasurementObject_xfsForAllViewports().


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