DimensionAspect Class |
Namespace: Demo3D.Visuals.Tools.DimensionTool
public class DimensionAspect : MeshSetRendererAspect, IMeshSetRendererAspect, IRendererAspect<MeshRenderable>, IRendererAspect, IControlPointProvider, INotifyPropertyChanged, IRendererAspectDelayedCreation
The DimensionAspect type exposes the following members.
| Name | Description | |
|---|---|---|
| DimensionAspect | Initializes a new instance of the DimensionAspect class |
| Name | Description | |
|---|---|---|
| ArrowLine | The cylinder which connects the start and end arrows. | |
| ArrowsInside | Determines whether the arrows face inwards or outwards. | |
| AspectManagedBy |
The Aspect that this is managed by.
(Inherited from AspectComponentBase.) | |
| BoundingBox | (Inherited from MeshSetRendererAspect.) | |
| BoundingSphere | (Inherited from MeshSetRendererAspect.) | |
| CastShadows | (Overrides RendererAspectBaseCastShadows.) | |
| ContainerBoundingBox |
The bounding box of the owning container.
(Inherited from RendererAspectBase.) | |
| ContainerBoundingSphere |
The bounding sphere of the owning container.
(Inherited from RendererAspectBase.) | |
| ContainerWorldMatrix |
The world matrix of the owning container.
(Inherited from RendererAspectBase.) | |
| ControlPoints | The control points of the dimension. | |
| Count | (Overrides MeshSetRendererAspectCount.) | |
| Depth | The forward distance of the dimension from the start point. | |
| DimensionDirection | The direction in which the dimension measures distance. | |
| Document | The currently loaded Document for the dimension. | |
| EndArrow | Click to edit the end arrow. | |
| EndExtension | The cylinder which extends from the End Arrow position. | |
| EndPoint | The end point of the dimension. | |
| ExtensionDirection | The direction in which the dimension extends. | |
| FlipText | Rotates the text by 180 degrees. | |
| Format | The text format of the dimension. | |
| HasRenderables |
The value for whether the aspect has renderables to be rendered.
(Inherited from RendererAspectBaseT.) | |
| Height | The vertical distance of the dimension from the start point. | |
| Id | (Inherited from SerializableObject.) | |
| IsCollapsed |
Collapse or expand the aspect in the Aspect Viewer.
(Inherited from AspectComponentBase.) | |
| IsDecal | (Overrides MeshSetRendererAspectIsDecal.) | |
| IsEnabled |
The value for whether the aspect is enabled.
(Inherited from AspectComponentBase.) | |
| IsInitialized |
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.) | |
| IsLayerVisible |
The value for whether the owning container's layer is visible.
(Inherited from RendererAspectBase.) | |
| IsReadOnly |
When true, disable editing in the Aspect Viewer
(Inherited from AspectComponentBase.) | |
| Length | The distance from the start point to the end point. Edit this value to move the visuals. | |
| LockDirection | Check this box to lock the dimension to the selected direction, preventing the direction from changing. | |
| Material | The color of the dimension. | |
| Name | A unique name for the aspect (Inherited from AspectComponentBase.) | |
| Renderables | The renderable components of the dimension. (Overrides RendererAspectBaseTRenderables.) | |
| StartArrow | Click to edit the start arrow. | |
| StartExtension | The cylinder which extends from the Start Arrow position. | |
| StartPoint | The start point of the dimension. | |
| Text | The Text of the dimension. | |
| TextHeight | The size of the text. | |
| TextOffset | The position of the text relative to the dimension. | |
| Unit | The display unit of measurement of the dimension. | |
| WorldMatrix | The World Matrix of the Container of the dimension. |
| Name | Description | |
|---|---|---|
| Add(T) | (Inherited from CollectionRendererAspectT.) | |
| Add(MeshReference, MeshMaterial, Matrix) | (Inherited from MeshSetRendererAspect.) | |
| Add(Document, IMesh, MeshMaterial, Matrix) | (Inherited from MeshSetRendererAspect.) | |
| Add(Guid, MeshReference, MeshMaterial, Matrix) | (Inherited from MeshSetRendererAspect.) | |
| Add(Document, Guid, IMesh, MeshMaterial, Matrix) | (Inherited from MeshSetRendererAspect.) | |
| AddT(MeshMaterial, Matrix) | (Inherited from MeshSetRendererAspect.) | |
| AddT(Guid, MeshMaterial, Matrix) | (Inherited from MeshSetRendererAspect.) | |
| AddCubeDebug | (Inherited from MeshSetRendererAspect.) | |
| CanAdd |
Determine whether the aspect can be added to the AspectContainer.
(Inherited from AspectComponentBase.) | |
| CanRender | (Inherited from MeshSetRendererAspect.) | |
| CleanupBindingAPI |
Remove all bindable items that have been added to the binding api via UpdateBindingAPI.
(Inherited from AspectComponentBase.) | |
| Clear | (Inherited from CollectionRendererAspectT.) | |
| CreateMesh |
Create dimension meshes.
| |
| FindAspectT |
Find an aspect of the desired type in this aspect's container.
(Inherited from AspectComponentBase.) | |
| FindCreateAspectT |
Find or, if one isn't found, create an aspect of the desired type in this aspect's container.
(Inherited from AspectComponentBase.) | |
| FindCreateManagedAspectT |
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.) | |
| Get | (Inherited from MeshSetRendererAspect.) | |
| GetRenderable | (Inherited from CollectionRendererAspectT.) | |
| GetRenderablesU |
Get all IRenderable objects of the desired type, contained by this aspect.
(Inherited from RendererAspectBaseT.) | |
| IsVisibleForLOD |
Method used to check if aspect is visible with regards to Level of Detail.
(Inherited from RendererAspectBase.) | |
| NotifyRenderableRemoved | (Inherited from RendererAspectBaseT.) | |
| NotifyRenderableRequest |
Invokes RenderableRequest.
(Inherited from RendererAspectBase.) | |
| OnAdded | Setup the dimension when added. Do not invoke manually. (Overrides MeshSetRendererAspectOnAdded.) | |
| OnAssigned |
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.) | |
| OnDisabled |
Called when disabled, this should never be invoked manually
(Inherited from RendererAspectBase.) | |
| OnEnabled |
Called when enabled, this should never be invoked manually
(Inherited from RendererAspectBase.) | |
| OnInitialize |
Called when the aspect container is Initialized, this should never be invoked manually
(Inherited from AspectComponentBase.) | |
| OnRemoved | Deconstruct the dimension when removed. Do not invoke manually. (Overrides RendererAspectBaseTOnRemoved.) | |
| OnReset |
Called when the aspect container is Reset, this should never be invoked manually
(Inherited from AspectComponentBase.) | |
| Pick | (Inherited from CollectionRendererAspectT.) | |
| PickFromWorldFrustum | (Inherited from CollectionRendererAspectT.) | |
| PreRender | (Inherited from MeshSetRendererAspect.) | |
| RaisePropertiesChanged |
Raise an PropertyChanged event for each value.
(Inherited from BindableBase.) | |
| RaisePropertyChanged(PropertyChangedEventArgs) |
Raise an PropertyChanged event for the specified value.
(Inherited from BindableBase.) | |
| RaisePropertyChanged(String) |
Raise an PropertyChanged event for the specified value.
(Inherited from BindableBase.) | |
| Remove(Guid) | (Inherited from CollectionRendererAspectT.) | |
| Remove(MeshRenderable) | (Inherited from MeshSetRendererAspect.) | |
| RemoveAspect(Object) |
Remove the desired aspect from this aspect's container.
(Inherited from AspectComponentBase.) | |
| RemoveAspectT |
Remove the aspect of the desired type from this aspect's container.
(Inherited from AspectComponentBase.) | |
| RemoveCubeDebug | (Inherited from MeshSetRendererAspect.) | |
| RemoveManagedAspects |
Remove all aspects that are being managed by this aspect..
(Inherited from AspectComponentBase.) | |
| Render |
Render the dimension for display.
(Overrides MeshSetRendererAspectRender(IDisplay).) | |
| RenderAll | (Inherited from CollectionRendererAspectT.) | |
| RenderShadow | (Inherited from CollectionRendererAspectT.) | |
| RenderShadowAll | (Inherited from CollectionRendererAspectT.) | |
| Replace(Guid, MeshReference, MeshMaterial, Matrix) |
Replace an existing mesh with a new one of the same id.
(Inherited from MeshSetRendererAspect.) | |
| Replace(Document, Guid, IMesh, MeshMaterial, Matrix) |
Replace an existing mesh with a new one of the same id.
(Inherited from MeshSetRendererAspect.) | |
| RequestRender |
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.) | |
| SerializableDependency(SerializableObject) |
Whether the specified object depends on the serializable object.
(Inherited from AspectComponentBase.) | |
| SerializableDependency(Visual) |
Whether the specified visual depends on the serializable object.
(Inherited from AspectComponentBase.) | |
| SetINotifyPropertyChangedPropertyT |
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.) | |
| SetPropertyT(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.) | |
| SetPropertyT(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.) | |
| ToString | (Inherited from AspectComponentBase.) | |
| UpdateBindingAPI |
If this aspect implements IBindableItemOwner, this method performs the following for each BindableItem: (Inherited from AspectComponentBase.)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. | |
| UpdateCubeDebug | (Inherited from MeshSetRendererAspect.) |
| Name | Description | |
|---|---|---|
| CastShadowsChanged |
Occurs when the value of CastShadowsChanged changes.
(Inherited from RendererAspectBase.) | |
| IsEnabledChanged |
Occurs when the value of IsEnabled changes.
(Inherited from AspectComponentBase.) | |
| RenderableRequest |
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.) | |
| Updated |
Occurs after a renderable has been updated.
(Inherited from RendererAspectBase.) |