Click or drag to resize
AB4D logo

BaseTextVisual3D Class

BaseTextVisual3D is a base class for Visual3D objects that create 3D Text. It define the common properties for text. Derived classes must override the CreateModel where the Content property is set.
Inheritance Hierarchy
SystemObject
  System.Windows.ThreadingDispatcherObject
    System.WindowsDependencyObject
      System.Windows.Media.Media3DVisual3D
        System.Windows.Media.Media3DModelVisual3D
          Ab3d.VisualsBaseVisual3D
            Ab3d.VisualsBaseTextVisual3D
              Ab3d.VisualsCenteredTextVisual3D
              Ab3d.VisualsTextVisual3D

Namespace: Ab3d.Visuals
Assembly: Ab3d.PowerToys (in Ab3d.PowerToys.dll) Version: 11.0.8746.1045
Syntax
C#
public abstract class BaseTextVisual3D : BaseVisual3D

The BaseTextVisual3D type exposes the following members.

Constructors
 NameDescription
Public methodBaseTextVisual3D Constructor
Public methodBaseTextVisual3D(String) Constructor
Top
Properties
 NameDescription
Public propertyFontSize Gets or sets a double that represents a size of the used font.
Public propertyLineThickness Gets or sets the thickness of the line in screen coordinates.
Public propertyText Gets or sets the text that is displayed with 3D lines.
Public propertyTextColor Gets or sets the color of the text
Public propertyTextDirection Gets or sets the Vector3D that is pointing in the direction in which the text is drawn. Default value is (1,0,0).
Public propertyUpDirection Gets or sets the Vector3D that is pointing in the text's up direction. Default value is (0,1,0).
Top
Methods
 NameDescription
Public methodAlignWithCamera(BaseCamera) AlignWithCamera method aligns this TextVisual3D to be oriented so that it faces the specified camera.
Public methodAlignWithCamera(ProjectionCamera) AlignWithCamera method aligns this TextVisual3D to be oriented so that it faces the specified camera.
Protected methodStatic memberOnColorPropertyChanged OnColorPropertyChanged
Top
Fields
 NameDescription
Public fieldStatic memberFontSizeProperty FontSizeProperty
Public fieldStatic memberLineThicknessProperty LineThicknessProperty
Public fieldStatic memberTextColorProperty TextColorProperty
Public fieldStatic memberTextDirectionProperty TextDirectionProperty
Public fieldStatic memberTextProperty TextProperty
Public fieldStatic memberUpDirectionProperty UpDirectionProperty
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