Click or drag to resize
AB4D logo

ThickLineEffect Class

ThickLineEffect is an effect that is using geometry shader to create and render 3D lines with specified line thickness.
Inheritance Hierarchy
SystemObject
  Ab3d.DirectXDXResourceBase
    Ab3d.DirectXSharedDXResource
      Ab3d.DirectXSharedDXDeviceResource
        Ab3d.DirectXEffect
          Ab3d.DirectX.EffectsThickLineEffect
            Ab3d.DirectX.EffectsModelColorLineEffect

Namespace: Ab3d.DirectX.Effects
Assembly: Ab3d.DXEngine (in Ab3d.DXEngine.dll) Version: 7.0.8865.1045
Syntax
C#
public class ThickLineEffect : Effect

The ThickLineEffect type exposes the following members.

Constructors
 NameDescription
Public methodThickLineEffect Constructor
Public methodThickLineEffect(String) Constructor
Top
Properties
 NameDescription
Public propertyCustomWireframeRasterizerState Gets or sets a RasterizerState that can be used when 3D lines are drawn without using geometry shader. If not set then DxDevice.CommonStates.WireframeMultisample is used.
Public propertyGlobalLineThicknessFactor Gets or sets a double value that is multiplied by all LineThickness values for all line materials that are rendered by this ThickLineEffect. Default value is 1. This preserves the original LineThickness. Changing this value can change the line thickness of all lines in the scene.
Public propertyOverrideBlendState When OverrideBlendState is set then ThickLineEffect will use that blend state. When null (by default) then Opaque blend state is used when lines's alpha color is 1, and NonPremultipliedAlphaBlend is used when alpha color is less then 1.
Public propertyRequiredInputLayoutType Gets the input layout that is required to render this effect.
(Overrides EffectRequiredInputLayoutType)
Public propertyUseGeometryShader Gets or sets a boolean that specifes if geometry shader is used to render the lines. Note that if DXScene.UseGeometryShaderFor3DLines is set to false, that this will override the value of UseGeometryShader property.
Top
Methods
 NameDescription
Public methodApplyMaterial Applies the material and object's world matrix to this effect.
(Overrides EffectApplyMaterial(Material, RenderablePrimitiveBase))
Public methodPreloadShaders PreloadShaders can be called to load the shaders in advance before they are used. Calling this method increases the startup time, but when the 3D object needs to be shown, it is shown faster because all the shaders have already been created.
(Overrides EffectPreloadShaders)
Top
Fields
 NameDescription
Public fieldStatic memberEffectName EffectName
Public fieldStatic memberNoPatternLinePattern NoPatternLinePattern defines a line pattern that represents a solid line without any spaces. It value is 0xFFFF.
Top
See Also