Click or drag to resize
AB4D logo

LineWithTextVisual3D Class

LineWithTextVisual3D class is used to create Visual3D that represents a 3D Line that displays a 3D text above the line.
Inheritance Hierarchy
SystemObject
  System.Windows.ThreadingDispatcherObject
    System.WindowsDependencyObject
      System.Windows.Media.Media3DVisual3D
        System.Windows.Media.Media3DModelVisual3D
          Ab3d.VisualsBaseVisual3D
            Ab3d.VisualsBaseLineVisual3D
              Ab3d.VisualsLineWithTextVisual3D

Namespace: Ab3d.Visuals
Assembly: Ab3d.PowerToys (in Ab3d.PowerToys.dll) Version: 11.2.9104.2045
Syntax
C#
public class LineWithTextVisual3D : BaseLineVisual3D, 
	ILineCapVisual3D

The LineWithTextVisual3D type exposes the following members.

Constructors
 NameDescription
Public methodLineWithTextVisual3D Constructor
Public methodLineWithTextVisual3D(String) Constructor
Top
Properties
 NameDescription
Public propertyEndLineCap Gets or sets one of the LineCap that is used for end position of the line
Public propertyEndPosition Gets or sets the line's end position
Public propertyFontSize Gets or sets a double that represents a size of the used font.
Public propertyStartLineCap Gets or sets one of the LineCap that is used for start position of the line
Public propertyStartPosition Gets or sets line's start position
Public propertyText Gets or sets the text that is displayed above the line.
Public propertyTextUpDirection Gets or sets the Vector3D that is pointing in the text's up direction. Default value is (0,1,0).
Public propertyUsedTextBlockVisual3D Gets a TextBlockVisual3D that is used to show the text. This property is set only when UseTextBlockVisual3D is true.
Public propertyUseTextBlockVisual3D Gets or sets a Boolean that specifies if LineWithTextVisual3D is using 3D lines (when false) or TextBlockVisual3D (when true) to show 3D text. Default value is false. Using TextBlockVisual3D provides much more text rendering options and allows using any font but may produce some problems because of showing semi-transparent texture (sorting objects by camera distance; or using Ab3d.DXEngine and alpha-clip threshold). When true, then the used instance of TextBlockVisual3D is set to the UseTextBlockVisual3D property.
Top
Methods
 NameDescription
Protected methodCreateModel Creates this Model3D
(Overrides BaseVisual3DCreateModel)
Top
Fields
 NameDescription
Public fieldStatic memberEndPositionProperty EndPositionProperty
Public fieldStatic memberFontSizeProperty FontSizeProperty
Public fieldStatic memberStartPositionProperty StartPositionProperty
Public fieldStatic memberTextProperty TextProperty
Public fieldStatic memberTextUpDirectionProperty TextUpDirectionProperty
Public fieldStatic memberUseTextBlockVisual3DProperty UseTextBlockVisual3DProperty
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