Click or drag to resize
AB4D logo

CornerWireBoxVisual3D Class

CornerWireBoxVisual3D a Visual3D that is similar to WireBoxVisual3D but it shows lines only in the corners. The IsLineLengthPercent and LineLength define the length of the lines. CenterPosition and Size define the position and size of the box. In case one Size component is 0, then only a rectangle is created.
Inheritance Hierarchy
SystemObject
  System.Windows.ThreadingDispatcherObject
    System.WindowsDependencyObject
      System.Windows.Media.Media3DVisual3D
        System.Windows.Media.Media3DModelVisual3D
          Ab3d.VisualsBaseVisual3D
            Ab3d.VisualsBaseLineVisual3D
              Ab3d.VisualsBaseMultiLineVisual3D
                Ab3d.VisualsWireBoxVisual3D
                  Ab3d.VisualsCornerWireBoxVisual3D

Namespace: Ab3d.Visuals
Assembly: Ab3d.PowerToys (in Ab3d.PowerToys.dll) Version: 11.1.8864.1045
Syntax
C#
public class CornerWireBoxVisual3D : WireBoxVisual3D

The CornerWireBoxVisual3D type exposes the following members.

Constructors
 NameDescription
Public methodCornerWireBoxVisual3D Constructor
Public methodCornerWireBoxVisual3D(String) Constructor
Top
Properties
 NameDescription
Public propertyIsLineLengthPercent Gets or sets a Boolean that specifies if the line length defined by LineLength property is specified in percentage of the box size (true), or in absolute value when all corner lines will have length defined by the value of LineLength property (false). Default value is true.
Public propertyLineLength Gets or sets the length of the corner lines. When IsLineLengthPercent is true, the length is defined as percentage of the box size. For example the default value of 0.25 means that each corner line length is 25% of the size of the box in the line's direction. When IsLineLengthPercent is false, then the length is defined in absolute value - all corner lines will have length the same as the value of this property.
Top
Methods
 NameDescription
Protected methodCreateModel Creates this Model3D
(Overrides WireBoxVisual3DCreateModel)
Top
Fields
 NameDescription
Public fieldStatic memberIsLineLengthPercentProperty IsLineLengthPercentProperty
Public fieldStatic memberLineLengthProperty LineLengthProperty
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