Click or drag to resize

DimensionAspect Class

A dimension as an aspect. Measures the distance between two points.
Inheritance Hierarchy
SystemObject
  System.DynamicDynamicObject
    NotifyPropertyChangedBase
      SimpleCustomTypeDescriptor
        GlobalizedProperties
          Demo3D.CommonBindableBase
            Demo3D.VisualsSerializableObject
              Demo3D.VisualsAspectComponentBase
                Demo3D.Visuals.RenderersRendererAspectBase
                  Demo3D.Visuals.RenderersRendererAspectBaseMeshRenderable
                    Demo3D.Visuals.RenderersCollectionRendererAspectMeshRenderable
                      Demo3D.Visuals.Renderers.MeshMeshSetRendererAspect
                        Demo3D.Visuals.Tools.DimensionToolDimensionAspect

Namespace:  Demo3D.Visuals.Tools.DimensionTool
Assembly:  Demo3D.Core (in Demo3D.Core.dll) Version: 15.0.2.11458
Syntax
C#
public class DimensionAspect : MeshSetRendererAspect, 
	IMeshSetRendererAspect, IRendererAspect<MeshRenderable>, IRendererAspect, IControlPointProvider, 
	INotifyPropertyChanged, IRendererAspectDelayedCreation

The DimensionAspect type exposes the following members.

Constructors
  NameDescription
Public methodDimensionAspect
Initializes a new instance of the DimensionAspect class
Top
Properties
  NameDescription
Public propertyArrowLine
The cylinder which connects the start and end arrows.
Public propertyArrowsInside
Determines whether the arrows face inwards or outwards.
Public propertyAspectManagedBy
The Aspect that this is managed by.
(Inherited from AspectComponentBase.)
Public propertyBoundingBox (Inherited from MeshSetRendererAspect.)
Public propertyBoundingSphere (Inherited from MeshSetRendererAspect.)
Public propertyCastShadows (Overrides RendererAspectBaseCastShadows.)
Public propertyContainerBoundingBox
The bounding box of the owning container.
(Inherited from RendererAspectBase.)
Public propertyContainerBoundingSphere
The bounding sphere of the owning container.
(Inherited from RendererAspectBase.)
Public propertyContainerWorldMatrix
The world matrix of the owning container.
(Inherited from RendererAspectBase.)
Public propertyControlPoints
The control points of the dimension.
Public propertyCount (Overrides MeshSetRendererAspectCount.)
Public propertyDepth
The forward distance of the dimension from the start point.
Public propertyDimensionDirection
The direction in which the dimension measures distance.
Public propertyDocument
The currently loaded Document for the dimension.
Public propertyEndArrow
Click to edit the end arrow.
Public propertyEndExtension
The cylinder which extends from the End Arrow position.
Public propertyEndPoint
The end point of the dimension.
Public propertyExtensionDirection
The direction in which the dimension extends.
Public propertyFlipText
Rotates the text by 180 degrees.
Public propertyFormat
The text format of the dimension.
Public propertyHasRenderables
The value for whether the aspect has renderables to be rendered.
(Inherited from RendererAspectBaseT.)
Public propertyHeight
The vertical distance of the dimension from the start point.
Public propertyId (Inherited from SerializableObject.)
Public propertyIsCollapsed
Collapse or expand the aspect in the Aspect Viewer.
(Inherited from AspectComponentBase.)
Public propertyIsDecal (Overrides MeshSetRendererAspectIsDecal.)
Public propertyIsEnabled
The value for whether the aspect is enabled.
(Inherited from AspectComponentBase.)
Public propertyIsInitialized
Gets the value of whether or not this aspect has been initialized. An aspect is initialized during the scenes initialization when starting a model.
(Inherited from AspectComponentBase.)
Public propertyIsLayerVisible
The value for whether the owning container's layer is visible.
(Inherited from RendererAspectBase.)
Public propertyIsReadOnly
When true, disable editing in the Aspect Viewer
(Inherited from AspectComponentBase.)
Public propertyLength
The distance from the start point to the end point. Edit this value to move the visuals.
Public propertyLockDirection
Check this box to lock the dimension to the selected direction, preventing the direction from changing.
Public propertyMaterial
The color of the dimension.
Public propertyName
A unique name for the aspect
(Inherited from AspectComponentBase.)
Public propertyRenderables
The renderable components of the dimension.
(Overrides RendererAspectBaseTRenderables.)
Public propertyStartArrow
Click to edit the start arrow.
Public propertyStartExtension
The cylinder which extends from the Start Arrow position.
Public propertyStartPoint
The start point of the dimension.
Public propertyText
The Text of the dimension.
Public propertyTextHeight
The size of the text.
Public propertyTextOffset
The position of the text relative to the dimension.
Public propertyUnit
The display unit of measurement of the dimension.
Public propertyWorldMatrix
The World Matrix of the Container of the dimension.
Top
Methods
  NameDescription
Public methodAdd(T) (Inherited from CollectionRendererAspectT.)
Public methodAdd(MeshReference, MeshMaterial, Matrix) (Inherited from MeshSetRendererAspect.)
Public methodAdd(Document, IMesh, MeshMaterial, Matrix) (Inherited from MeshSetRendererAspect.)
Public methodAdd(Guid, MeshReference, MeshMaterial, Matrix) (Inherited from MeshSetRendererAspect.)
Public methodAdd(Document, Guid, IMesh, MeshMaterial, Matrix) (Inherited from MeshSetRendererAspect.)
Public methodAddT(MeshMaterial, Matrix) (Inherited from MeshSetRendererAspect.)
Public methodAddT(Guid, MeshMaterial, Matrix) (Inherited from MeshSetRendererAspect.)
Public methodAddCubeDebug (Inherited from MeshSetRendererAspect.)
Protected methodCanAdd
Determine whether the aspect can be added to the AspectContainer.
(Inherited from AspectComponentBase.)
Public methodCanRender (Inherited from MeshSetRendererAspect.)
Protected methodCleanupBindingAPI
Remove all bindable items that have been added to the binding api via UpdateBindingAPI.
(Inherited from AspectComponentBase.)
Public methodClear (Inherited from CollectionRendererAspectT.)
Public methodCreateMesh
Create dimension meshes.
Public methodFindAspectT
Find an aspect of the desired type in this aspect's container.
(Inherited from AspectComponentBase.)
Public methodFindCreateAspectT
Find or, if one isn't found, create an aspect of the desired type in this aspect's container.
(Inherited from AspectComponentBase.)
Public methodFindCreateManagedAspectT
Find or, if one isn't found, create a managed aspect of the desired type in this aspect's container. The managed aspect will be owned by the declared aspect.
(Inherited from AspectComponentBase.)
Public methodGet (Inherited from MeshSetRendererAspect.)
Protected methodGetRenderable (Inherited from CollectionRendererAspectT.)
Public methodGetRenderablesU
Get all IRenderable objects of the desired type, contained by this aspect.
(Inherited from RendererAspectBaseT.)
Public methodIsVisibleForLOD
Method used to check if aspect is visible with regards to Level of Detail.
(Inherited from RendererAspectBase.)
Protected methodNotifyRenderableRemoved (Inherited from RendererAspectBaseT.)
Public methodNotifyRenderableRequest (Inherited from RendererAspectBase.)
Protected methodOnAdded
Setup the dimension when added. Do not invoke manually.
(Overrides MeshSetRendererAspectOnAdded.)
Protected methodOnAssigned
Called when assigned to an aspect container, this should never be invoked manually. No other aspects should be accessed within this method.
(Inherited from AspectComponentBase.)
Protected methodOnDisabled
Called when disabled, this should never be invoked manually
(Inherited from RendererAspectBase.)
Protected methodOnEnabled
Called when enabled, this should never be invoked manually
(Inherited from RendererAspectBase.)
Protected methodOnInitialize
Called when the aspect container is Initialized, this should never be invoked manually
(Inherited from AspectComponentBase.)
Protected methodOnRemoved
Deconstruct the dimension when removed. Do not invoke manually.
(Overrides RendererAspectBaseTOnRemoved.)
Protected methodOnReset
Called when the aspect container is Reset, this should never be invoked manually
(Inherited from AspectComponentBase.)
Public methodPick (Inherited from CollectionRendererAspectT.)
Public methodPickFromWorldFrustum (Inherited from CollectionRendererAspectT.)
Public methodPreRender (Inherited from MeshSetRendererAspect.)
Public methodRaisePropertiesChanged
Raise an PropertyChanged event for each value.
(Inherited from BindableBase.)
Public methodRaisePropertyChanged(PropertyChangedEventArgs)
Raise an PropertyChanged event for the specified value.
(Inherited from BindableBase.)
Public methodRaisePropertyChanged(String)
Raise an PropertyChanged event for the specified value.
(Inherited from BindableBase.)
Public methodRemove(Guid) (Inherited from CollectionRendererAspectT.)
Public methodRemove(MeshRenderable) (Inherited from MeshSetRendererAspect.)
Public methodRemoveAspect(Object)
Remove the desired aspect from this aspect's container.
(Inherited from AspectComponentBase.)
Public methodRemoveAspectT
Remove the aspect of the desired type from this aspect's container.
(Inherited from AspectComponentBase.)
Public methodRemoveCubeDebug (Inherited from MeshSetRendererAspect.)
Public methodRemoveManagedAspects
Remove all aspects that are being managed by this aspect..
(Inherited from AspectComponentBase.)
Public methodRender
Render the dimension for display.
(Overrides MeshSetRendererAspectRender(IDisplay).)
Protected methodRenderAll (Inherited from CollectionRendererAspectT.)
Public methodRenderShadow (Inherited from CollectionRendererAspectT.)
Protected methodRenderShadowAll (Inherited from CollectionRendererAspectT.)
Public methodReplace(Guid, MeshReference, MeshMaterial, Matrix)
Replace an existing mesh with a new one of the same id.
(Inherited from MeshSetRendererAspect.)
Public methodReplace(Document, Guid, IMesh, MeshMaterial, Matrix)
Replace an existing mesh with a new one of the same id.
(Inherited from MeshSetRendererAspect.)
Public methodRequestRender
Utility method to request a complete render from the app. This should be called after changing a property that affects the rendering of this aspect.
(Inherited from RendererAspectBase.)
Public methodSerializableDependency(SerializableObject)
Whether the specified object depends on the serializable object.
(Inherited from AspectComponentBase.)
Public methodSerializableDependency(Visual)
Whether the specified visual depends on the serializable object.
(Inherited from AspectComponentBase.)
Protected methodSetINotifyPropertyChangedPropertyT
Checks to see if the property is the same as the specified value. It they're different then set the value and raise an PropertyChanged event. Property changes on the new value are also listened to and, if one occurs, the propertyChangedCallback handler will be invoked.
(Inherited from BindableBase.)
Protected methodSetPropertyT(T, T, PropertyChangedEventArgs)
Checks to see if the property is the same as the specified value. It they're different then set the value and raise an PropertyChanged event.
(Inherited from BindableBase.)
Protected methodSetPropertyT(T, T, String)
Checks to see if the property is the same as the specified value. It they're different then set the value and raise an PropertyChanged event.
(Inherited from BindableBase.)
Public methodToString (Inherited from AspectComponentBase.)
Protected methodUpdateBindingAPI
If this aspect implements IBindableItemOwner, this method performs the following for each BindableItem:
If the aspect is disabled OR the item is not part of the binding interface (see IsBindingInterface), then remove it from the binding API.
Otherwise, if the item is part of the binding interface AND the item does not already have a declared binding (see HasBindingInterface), add the item to the binding API.
Any bindable items that are added to the binding API will appear in the IO browser grid and can be further utilized for controls testing.
(Inherited from AspectComponentBase.)
Public methodUpdateCubeDebug (Inherited from MeshSetRendererAspect.)
Top
Events
  NameDescription
Public eventCastShadowsChanged
Occurs when the value of CastShadowsChanged changes.
(Inherited from RendererAspectBase.)
Public eventIsEnabledChanged
Occurs when the value of IsEnabled changes.
(Inherited from AspectComponentBase.)
Public eventRenderableRequest
Occurs before the renderables are about to be use so that they can be configured correctly, eg before a render or an export.
(Inherited from RendererAspectBase.)
Public eventUpdated
Occurs after a renderable has been updated.
(Inherited from RendererAspectBase.)
Top
See Also