Click or drag to resize

VisualComponent Class

Component model API for Demo3D visuals. Implements an API for creating, managing, and querying components in the model. The API allows a visual to be a member of more than one component at the same time. For example a conveyor "Catalog" component may consist of a set of visuals (support stands, motor, skinned visuals, etc), but the motor part of the conveyor may itself be a "CAD" component. The type of component that a visual belongs to (eg "Catalog" component) is called the 'component-type'. For most of the API calls, the caller can/must pass in the 'component-type' to use (or a list of component-types to choose from). The storage and management of a component is handled by its 'component-model'. This manages the detail of how components are stored in the model, and how a component behaves under certain conditions. Each component-type, regardless of the model that manages it, can have component-type properties. The properties allow user hooks for certain events (such as visuals being added/removed from a component) and control over how components of that particular component-type should behave when being queried/manipulated.
Inheritance Hierarchy
SystemObject
  Demo3D.VisualsVisualComponent

Namespace:  Demo3D.Visuals
Assembly:  Demo3D.Core (in Demo3D.Core.dll) Version: 10.0.0.6737
Syntax
C#
public static class VisualComponent

The VisualComponent type exposes the following members.

Methods
  NameDescription
Public methodStatic memberAddToComponent(Visual, String, Visual)
Add a list of visuals to a component (or create a component).
Public methodStatic memberAddToComponent(Visual, String, IEnumerableVisual)
Add a list of visuals to a component (or create a component).
Public methodStatic memberAddToComponent(Visual, Visual, VisualComponentComponentType, Boolean)
Mark this visual as a member of the component. Component must be the root of an existing component, or null. If deep is set, then this visual and all its descendants will be added to the component. If deep is not set but this visual is already a member of a component, then it and all its child visuals within the current component, will be moved to the new component.
Public methodStatic memberAddToComponent(Visual, Visual, String, Boolean)
Mark this visual as a member of the component. Component must be the root of an existing component, or null. If deep is set, then this visual and all its descendants will be added to the component. If deep is not set but this visual is already a member of a component, then it and all its child visuals within the current component, will be moved to the new component.
Public methodStatic memberBelongsToComponent
Returns true if this visual belongs to a specific component.
Public methodStatic memberCommonComponentTypes
Returns the component types common between this visual and a list of other visuals.
Public methodStatic memberComponent(Visual, VisualComponentComponentType)
Returns the component root for this visual, or null if it's not part of a component of the given component type.
Public methodStatic memberComponent(Visual, VisualComponentSearchCriteria)
Returns the component root for this visual.
Public methodStatic memberComponent(Visual, String)
Returns the component root for this visual.
Public methodStatic memberComponentChildren(Visual, VisualComponentSearchCriteria)
Returns all children of this component.
Public methodStatic memberComponentChildren(Visual, String)
Returns all children of this component.
Public methodStatic memberComponentDescendants(Visual, VisualComponentSearchCriteria)
Returns all descendants of this component.
Public methodStatic memberComponentDescendants(Visual, String)
Returns all descendants of this component.
Public methodStatic memberComponents
Returns all the components to which this visual belongs.
Public methodStatic memberComponentTypes
Returns an ordered list of all the component types to which this visual belongs.
Public methodStatic memberComponentVisuals(Visual, VisualComponentComponentType)
Returns all the visuals belonging to this component.
Public methodStatic memberComponentVisuals(Visual, VisualComponentSearchCriteria)
Returns all the visuals belonging to this component.
Public methodStatic memberComponentVisuals(Visual, String)
Returns all the visuals belonging to this component.
Public methodStatic memberCreateComponent
Mark this visual as a component.
Public methodStatic memberFindComponentType(Visual, VisualComponentSearchCriteria)
Returns a component type for this visual.
Public methodStatic memberFindComponentType(Visual, String)
Returns a component type for this visual.
Public methodStatic memberIsComponentRoot(Visual, VisualComponentComponentType)
Returns true if this visual is the root of its component.
Public methodStatic memberIsComponentRoot(Visual, VisualComponentSearchCriteria)
Returns true if this visual is the root of its component.
Public methodStatic memberIsComponentRoot(Visual, String)
Returns true if this visual is the root of its component.
Public methodStatic memberIsComponentType
Returns true if this visual is a component member of componentType.
Public methodStatic memberRegister
Register a specific component model for a component type. The component model decides how a component should be delineated. The default for components is the ComponentMembershipModel.
Public methodStatic memberRemoveFromComponent(String, Visual)
Remove visuals from component.
Public methodStatic memberRemoveFromComponent(String, IEnumerableVisual)
Remove visuals from component.
Public methodStatic memberRemoveFromComponent(Visual, VisualComponentComponentType)
Remove this visual from component.
Public methodStatic memberRemoveFromComponent(Visual, String)
Remove this visual from component.
Public methodStatic memberUnregister
Unregister a component type.
Top
Fields
  NameDescription
Public fieldStatic memberCatalogComponent
The default component-type given to all components pulled in from a catalog or the WebStore.
Top
See Also