SolidKit.Forms.Control3D.Control3DDefaults class

From Solid Graphics Wiki

Jump to: navigation, search
SolidKit.Forms.Control3D.Control3DDefaults class
Namespace: SolidKit.Forms
Base type: (None)
Assembly: SolidKit.dll
Platform: .NET

The Control3DDefaults class is a type holding the default values for the Control3D class. The Control3D class' constructor uses the DefaultSettings (which is of Control3DDefaults class type) field values to initialize the Control3D class objects.

The Control3DDefaults class is the type of the Control3D.DefaultSettings static variable of the Control3D class.


Fields

Field name Type Description
FontCodePage int Code page for the texture font used for default ControlD object font.
ShareDisplayLists bool Flag telling whether to share OpenGL display lists (true) between multiple rendering contexts or not (false). Default is true.
UseDoubleBuffer bool Flag telling whether to use OpenGL double buffering (true) or not (false). Default is true.
UseOrthoProjection bool Flag telling whether to initially use ortho projection (true) when window is created or not (false). Default is false.
UseFreePerspectiveZoom bool Flag telling whether zoom mode in perspective projection will be always view window centered (false) or whether zoom window can be specified anywhere on the window screen (true). Default is true. When zoom rectangle can be freely placed on the view window then some parts of the scene might be not rendered in the view after the view is zoomed in - even if they were in the zoom selection rectangle. This is because of the nature of the perspective projection. The Control3D class zooms onto the area at the target position distance - this might cause objects which are closer to the eye position to not be displayed if the zoom selection rectangle is away from the center of the window.
EnsureContext bool This flags tells the Control3D class object whether to call OpenGLContext.MakeCurrent in each it's method calls which change the view projection (true) or not (false). Default is true.
InteractionMode Control3D.MouseInteractionMode Initial view interaction mode to use when a Control3D object is created. Default value is Control3D.MouseInteractionMode.None.
ManipulationMode Control3D.ManipulationMode Initial view manipulation mode to use when a Control3D object is created. Default value is Control3D.ManipulationMode.SceneAndObjects.
InitialAntialiasingQuality Control3D.Antialiasing Initial view's antialiasing quality setting. Default value is Control3D.Antialiasing.x5.
AntialiasingQuality Control3D.Antialiasing antialiasing quality quality to use when antialiasing for a Control3D object is turned on. Default value is Control3D.Antialiasing.x5.
DisplayOptions Control3D.RenderEndDisplayOptions Initial view's display options. Defaul value is RenderEndDisplayOptions.DisplayGrabObjectEditOptions
FloorNavigation bool The flags tells whether to initialize Control3D object with floor navigation mode (true) or not (false). Default is true.
FloorPlane SolidKit3D.Plane Default floor plane normal to use for the floor navigation mode. Default value is CoordinateSystem.YAxis.
FloorXDirection SolidKit3D.Vector Default floor plane's X axis to use in the floor navigation mode. Default value is CoordinateSystem.XAxis.
FloorSize float Size of displayed floor rectangle. Default value is 25.0f
AnimationMode bool Flag indicating whether the window initiallly starts in animation mode (true) or not (false). Default is false.
FrameBufferClearFlags uint Value used by Control3D object when calling glClear OpenGL function. Default value of this field is GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT.
NearClipDistance float Near clipping distance settings for viewing frustum. If set to -float.MaxValue then the near clip distance of viewing frustum is set to eye position distance to the sum of bounding boxes set by SetSceneBoundingBoxInfo method and SetDisplayBoundingBoxInfo method. Default value is -float.MaxValue.
FarClipDistance float Far clipping distance settings for viewing frustum. If set to -FLT_MAX then the far clip distance of viewing frustum is set to eye position distance to farther edge of the sum of bounding boxes set by SetSceneBoundingBoxInfo method and SetDisplayBoundingBoxInfo method. Default value is -float.MaxValue.
NearClipDistanceRatio float This value is used to calculate near clip distance in perspective projection if Control3D object's nearClipDistance is set to -float.MaxValue. In that case the near clip distance is set to sceneRadius / nearClipDistanceRatio if eye position is inside scene bounding box or scene bounding box is closer to the eye position than the sceneRadius / nearClipDistanceRatio value. Default value of this field is 1000.0f.
ClearDepth float This value is used to clear the OpenGL depth buffer when view's framebuffer is cleared for rendering next frame. Default value of this field is 1.0f.
SelectionBufferSize int Size allocated for OpenGL selection buffer when OpenGL based selection is used. Default is 512.
PickingVolumeSize float Picking area specified in pixels used for object selection. Default is 3.0f
PackAlignment int Value used for OpenGL's GL_PACK_ALIGNMENT state variable. Default value is 4.
UnpackAlignment int Value used for OpenGL's GL_UNPACK_ALIGNMENT state variable. Default value is 4.
VerticalViewAngle float Initial vertical view angle in degrees to use when the view is created. Default value is 45.0.
MaxPrintResolution int Maximum size of either of the dimensions of internal bitmap used for printing the view by printer. Default value of this field is 2048.

{{field table row 2 | [[CoordinateUnit.UnitType | UnitIdentifier | Default unit identifiers used by Control3D objects. Default value is CoordinateUnit.UnitType.Meter. }}

UnitsPerMeter double Units per meter specified for the unitIdentifier field. Default is 1.0.
ZoomFactor float Zoom factor used when Control3D.ZoomIn or Control3D.ZoomOut method is called. Default value is 1.4f.

See Also

   


SolidKit Library Documentation

Personal tools