Click or drag to resize
AB4D logo

BaseVisual3D Methods

The BaseVisual3D type exposes the following members.

Methods
 NameDescription
Public methodBeginInit Signals the line 3D that initialization is starting.
Protected methodCreateModel Creates this Model3D
Public methodEndInit Signals the line 3D that initialization is complete.
Public methodGetContent GetContent return the Model3D from the Content property (when this Visual3D is visible) or from the protected savedHiddenContent field (when this Visual3D is hidden, then the Model3D from the Content is set to savedHiddenContent field so that Content can be set to null to hide this Visual3D).
Protected methodOnIsVisibleChanged OnIsVisibleChanged is called when the value of IsActuallyVisible property is changed.
Protected methodOnParentChanged OnParentChanged
Protected methodStatic memberOnPropertyChanged OnPropertyChanged method calls UpdateContentIfNotInitializing that recreates the model is visible (IsVisible is true) and if not initializing (between BeginInit and EndInit).
Protected methodOnVisualParentChanged OnVisualParentChanged
(Overrides Visual3DOnVisualParentChanged(DependencyObject))
Public methodSetContent SetContent method sets the specified model3D to the Content property (when this Visual3D is visible), or to the savedHiddenContent field (when this Visual3D is hidden, then the Model3D from the Content is set to savedHiddenContent field so that Content can be set to null to hide this Visual3D).
Protected methodUpdateContentIfNotInitializing Recreates the models if the Visual3D is visible (IsVisible is true) and it is not initializing (between BeginInit and EndInit)
Protected methodStatic memberValidateDoublePropertyValue Returns true if value is valid double
Protected methodStatic memberValidatePositiveDoublePropertyValue Returns true if value is valid double and is positive
Protected methodStatic memberValidatePositiveIntPropertyValue Returns true if value is positive integer
Protected methodStatic memberValidateSize3DOneZeroAllowedPropertyValue Returns true if the value is a valid Size3D object used for Box3D (one size component is allowed to be zero)
Protected methodStatic memberValidateSize3DPropertyValue Returns true if the value is a valid Size3D object
Protected methodStatic memberValidateSizePropertyValue Returns true if the value is a valid Size object
Top
Extension Methods
 NameDescription
Public Extension MethodDumpHierarchy Display details about the hierarchy of Visual3D children to Debug console (for example to Visual Studio's Immediate window).
(Defined by Extensions)
Public Extension MethodForEachGeometryModel3D Performs the specified action on each GeometryModel3D inside the rootModelVisual3D.
(Defined by Extensions)
Public Extension MethodForEachVisual3D Performs the specified action on each ModelVisual3D inside the rootModelVisual3D.
(Defined by Extensions)
Public Extension MethodGetName Gets name of the Visual3D that was previously set by SetName extension method.
(Defined by Extensions)
Public Extension MethodSetName Sets Name property to Visual3D. Note that if name is not correct for WPF, it can be corrected (name must start with a letter or the underscore character (_), and must contain only letters, digits, or underscores). In this case the SetName method will set the corrected name to the object and return false (in this case you can call GetName to get the corrected name). True is returned when the original name is set to the object.
(Defined by Extensions)
Top
See Also