Class vdRenderGlobalProperties
- Namespace
- VectorDraw.Render
- Assembly
- VectorDraw.Render.dll
Provides a list of properties used in a vdRender object.
public class vdRenderGlobalProperties : BaseObject, IDisposable, IBaseObject, IVDSerialise
- Inheritance
-
vdRenderGlobalProperties
- Implements
- Inherited Members
Constructors
- vdRenderGlobalProperties()
Initializes the object.
- vdRenderGlobalProperties(bool)
Initializes the object.
Fields
- FixedShadeOnPenWidth
Used for the pen width of edges in render when renderMode is ShadeOn or Hide
- MAX_SECTIONS
maximum simultaneously enabled section clips
- MinLineTypeSegmentLen
The minimun length of linetypes less from which the linetype will be draw as solid
- MinTextHeight
The minimun height of text less from which the text will be draw as boundingBox
- MinimumTimerBreakForPeekMessage
Gets a value in milliseconds that defines the minimum time elapsed in order to check if messages que is empty.
- globalParallelFor
A global variable tha defines if CPU parallel for is used for specific drawing operations.UseParallelFor
Properties
- ActionCursor
Get/Set the cursor used by the Actions.Default value is NullCursor
- ActionProperties
Specifies values that controls some of BaseAction operations
- ActivePixelFormat
Returns a structure that contains information about the select pixel format of VectorDraw window device.
- ApplyLWtoHatchProperties
Get/Set a boolean value representing if the LineWeight property of the figures will be applied to the hatchproperties when an object is filled with a hatchpattern.
- AttributesMode
Get/Set the vdRenderGlobalProperties.AttributesModeEnum value used by attributes of the drawing.This value is serialized by the drawing.
- AxisSize
Get/Set the mouse crosshair size in pixels.
- AxisSizeScaled
Returns the Scaled value of the property depend on ScaledPixelValue
- AxisVisibility
Controls the visibility of cross axis during select actions.
- CSAxisSize
Get/Set program default Coordinate Axis length in pixels.
- CSAxisSizeScaled
Returns the Scaled value of the property depend on CSAxisSize
- CSAxisWidth
Get/Set program default Coordinate Axis width in pixels.
- CSAxisWidthScaled
Returns the Scaled value of the property depend on CSAxisWidth
- CrossSize
Get/Set the reference mouse crosshair in pixels.
- CrossSizeScaled
Returns the Scaled value of the property depend on ScaledPixelValue
- CursorAxisColor
Get/Set the color used for the draw of the mouse crosshair.
- CursorPickColor
Get/Set the color used to draw the mouse rectangle.
- CurveResolution
Get/Set the curve resolution of the render object.
- CustomRenderTypeName
Internally used only.Get/Set Basic Render context used on 3d rendering modes Hide , Shade , ShadeOn , Render
- DPIPatternOffset
Specifies the offset in inches between pattern lines of Dpi patterns on the output device.
Default value is 0.0833 inches.
- DisableControlColor
Get/Set the color that Control Area filled when Enabled = false.
- DrawSolidHatchesOnHide
A static value that specifies if draw solid fill hatches with their color or background color, when render mode is Hide.
- DynamicRotFlag
Get/Set the vdRenderGlobalProperties.DynamicRotFlags value used by the rotate-3d action.
- EdgeColor
Get/Set the display color for edges of all faces when rendering in 3d.(when RenderMode is Wire3d ,Hide or ShadeOn)
- EdgeColorOnWire
Get/Set if the EdgeColor will applied also with Wire render modes
- EdgeEffect
Controls the Edge display of polyfaces.
- EdgePenWidth
Used for the pen width in inches of edges in render when renderMode is ShadeOn or Hide
- EnableMiddleGripForLines
Get/Set a static boolean value that represents if grips will be shown in the middle of the vdLine object.
- EnableMiddleGripForPolylines
Get/Set a static boolean value that represents if grips will be shown in the middle of the straight (bulge = 0.0) segments of a polyline.
- GridColor
Get/Set the color used to draw the grid.
- GripColor
Get/Set the grip color of the render.
- GripRotationColor
Get/Set the grip color for rotation of the render.Default color is Green.
- GripSelectionHighlight
A global property that controls the HightLight of grip moved entities
- GripSize
Get/Set the grip size in pixels used in render.
- GripSizeScaled
Returns the Scaled value of the property depend on ScaledPixelValue
- GroupGripColor
Get/Set the grip color of the groups.This is used when a group is selected.
- HighLightPerspectiveGrips
Get/Set a boolean value representing if the entities whith ShowGrips will be highlighted when perspective mode is on. Default value is true.
- IgnoreHatchOsnaps
Get/Set a boolean value representing if osnap points are calculated over hatch patterns.
Default value is false.
- IgnoreTransparency
Specifies if objects' transparency is taking in consideration.
- ImageDrawFlag
Specifies properties that control the behaviour of the vdImage draw.
- IsFrontFaceClockWise
Returns the Front Face direction used with textures in 3d render mode.
- LightsFilter
Specifies properties that control the behaviour of the Lights application over the object types. Default value is Ignore_None.
- LineDrawQualityMode
Specifies the Line Draw quality for wire 2d rendering mode.
- LineWeightDisplay
Specifies the Line weight display for the objects.
- LineWeightDisplayScale
Specifies the Line weight display scale for the objects on screen model space only.
- MaxBmpMemorySize
Get/Set the maximum memory in bytes to be used for images.
- MaxRenderingScreenSize
Internally used only. Get/Set a static value that used to initialize openGL rendering context size in pixels. Default value is 4096 x 4096. This value can be changed only if there are rendering problems for specific graphic cards.
- MeshAutoSize
Defines the lower limit of the vdPolyface FaceList count above which TRIANGLES or SQUARES can be applied to vdPolyfaces, when vdPolyface.MeshDrawType is AUTO
Default value is 1250 face list count
- MeshDrawFaces
Defines the number of faces that vdPolyfaces with MeshType TRIANGLES or QUADS will be spit in order to drawn en masse
It also defines the lower limit above which TRIANGLES or SQUARES can be applied to vdPolyfaces, when vdPolyface.MeshDrawType is AUTO
Default value is 10000 faces
- MeterProgress
Get/Set the ProgressMeter object.
- MinPenWidth
Get/Set Minimun penwidth in output render device in inches
Default value is 0.006 inches
- Model2dProjectionSize
Get/Set a static value that used to initialize rendering context size in pixels used by GetModel2dProjection. Default value is 2048 Set a bigger value for more quality or smaller for less memory usage and more speed.
- NullCursor
Returns a contstant full transparent.This is also the default used by ActionCursor
- OpenGLContext
Returns the defualt OpenGL Context for all vdDocument objects
- OpenGLDoubleBuffered
Get/Set a static boolean value that represents if OpenGL and VectorDraw Lists are both kept.
- OpenGLFlags
Defines opengl general flags
- OpenGLMaxImageBindSize
Represents the Maximum memory in bytes to be used for images when binding to OPENGL context.
Default value is 67108864 bytes
Set it to a biger value for better resolution of images with OpenGL render modes
Set it to 0 for no reducing image size
This value is global and apply to all vdDocuments objects
It can be initialized on your Application startup
- OpenGLPolygonOffsetFill
Controls when an offset is added to depth values of a polygon's fragments in order line segments in the same depth to be visible.
- OpenGLVersion
Get the opengl version used by the Application. An Opengl Render must be run at list once in order to get the OpenGL version
- OpenGlAntializing
Get/Set a static value that defines the opengl render antialiasing sample number.
- OpenGlAntializingWidth
Get/Set a static value that defines the minimum opengl render antialiasing line width in pixels.
- OpenglCoordCorrectionLimit
Get/Set a static boolean value that defines the limit over which the coordinate correction is applied.
- OpenglUseFontOutLines
Defines how fonts are drawn with opengl.
- OsnapColor
Get/Set the osnap color of the render.
- OsnapSize
Get/Set the osnap size in pixels used in render.
- OsnapSizeScaled
Returns the Scaled value of the property depend on ScaledPixelValue
- PanUserFlag
Get/Set the vdRenderGlobalProperties.PanUserFlags value used by the pan action.
Default value = None
- ParallelFill
Specifies if filled regions and images will be drawn using a parallel_for procedure in 2d render mode.
Default value is true.
- PickAdd
Controls whether a user selection action replace the current selection set (is false) or add to it (true).
- PickBoxVisibility
Controls the visibility of pick box during user actions.
- PickSize
Get/Set the mouse rectangle size in pixels.
- PickSizeScaled
Returns the Scaled value of the property depend on ScaledPixelValue
- ReferenceCrossColor
Get/Set The color used for the reference mouse crosshair.
- RenderingQuality
Specifies the vdRender.RenderingQualityMode quality.
- RubberBandColor
Get/Set the color of the rubber line in mouse actions.
- ScalePixelValues
Get / Set a global value that defines if the
GripSize OsnapSize PickSize AxisSize CrossSize CSAxisSize CSAxisWidth
will be scaled according to the screen resolution scale ScreenDPI
Default value is true and the values are automatically scaled in order to keep the same size in screen independ the selected screen resolution scale.
- ScaledPixelValue
Returns the division between Standard Screen Resolution(96dpi) to Screen Selected Resolution ScreenScale
- SceneRotationProps
Get/Set properties that define how the 3D rotation action behaves.
- SceneRotationSpeed
Get/Set the speed for the Dynamic 3D view rotate command action.
- ScreenDPI
Returns the Screen resolution in dots per inch
- ScreenScale
Returns the Grphics Driver Layout Screen Scale
- SectionClipCoverFaces
A boolean value that represents if when section clips are enabled cover faces will be created and drawn to PolyFaces that intersect with the section clips.True , the faces are drawn and false faces are not drawn.
- SectionClipCoverFacesColor
Get/Set color that used to fill the Section clip faces. Default value is Color.Empty in order the active PolyFace object color to be used.
- SectionClipCoverFacesEquality
Get/Set a value divided with current view depth gives an offset in the visible side added to the section clip cover faces.
- SelectActionKey
Get/Set a key value used in combination with mouse-down to add or remove selected item(s) from a selection.
- SelectingCrossColor
Get/Set Solid Transparency color for crossing window selecting.
- SelectingWindowColor
Get/Set Solid Transparency color for window selecting.
- SelectionPreview
Get/Set the preview method vdRenderGlobalProperties.SelectionPreviewFlags of entities that are over the mouse position when an action waiting to select an entity.
- SelectionPreviewBreakDrawTime
Get/Set a value in milliseconds that defines the minimum time elapsed for breaking the highlight preview draw of the figures when the mouse is over an entity.
- SelectionPreviewColor
Get/Set the highlight color of all entities when a selecting action is active and the mouse is over an entity.
- SelectionText
Get/Set the way that text are selected.vdRenderGlobalProperties.SelectionTextFlags
- ShowCursor
Get/Set a boolean value representing if the mouse crosshair is visible or not.
- ShowGripsOnActions
Get/Set a static boolean value that represents if the already activated grips will be shown while an action is active.
- ShowHatches
Get/Set a boolean value representing if the hatches of filled object will be shown.
- ShowHidenEdges
Get/Set a boolean value representing if the edges of the 3dFace object will be shown.
- ShowQuickText
Get/Set a boolean value representing if the texts will be rendered as rectangles for faster draw. Default value is false so text will be rendered as text and not as a rectangle.
- ShxBoldWidth
Get/Set penwidth used to draw SHX Bold texts.
Positive value in percent of text height
-or- Negative in hundrends of device millimeters.
Default value is 20 percent of thext height
- SmoothAngle
Get/Set the angle in degrees between 0 and 90 used to calculate normals for each vertex in each face when rendering a polyface object. Defines the maximum angle which is compared with the angles between the planes of neighboring faces in order to filter out the normals of the planes that will added in the average calculation.
- SortedTransparentLists
Controls the draw order of transparency objects. If it is true the their draw order is sorted from farest to nearest, in active rendering view.
- SplitColor
Get/Set the color used to draw the split lines.
- SplitHighLightColor
Get/Set the highLight color for the active viewport inside a split layout.
- StartUpActionCursor
Get/Set the cursor used by the default startup action.Default value is null
- StrechText
Specifies if vdText, vdMtext, dimension text, vdPoint, vdInsert with StretchBlockFlag = NoStretch, will be stretched when the selected WorldToView matrix has different x,y scales.
- TimerBreakForDraw
This value represents the minimum time elapsed in milliseconds, for breaking the draw when a windows message appears to the message que.
- TimerBreakForSelect
This value represents the minimum time elapsed in milliseconds, for breaking selecting loop when a windows message appears to the message que.
- UseParallelFor
Defines if CPU parallel for is used for specific drawing operations.
Default value is All.
- UserDynamicRotColor
Get/Set the Action User Dynamic Rotation circle color..
- ValidPixelFormats
Returns the Valid PixelFormats that VectorDraw window supports for openGL render. In order to return a valid value the vdDocument.RenderMode must be one of 3d rendering modes (Wire3d, Shade, Hide, ShadeOn, Render) and the vdDocument.GlobalRenderProperties.CustomRenderTypeName 'opengllist' . By default VectorDraw uses the first in the list. In your application Initialization and before any draw occurs, set an other one from the list to VectorDraw.Render.OpenGL.OpenGLImports.PIXELFORMATDESCRIPTOR.DefaultWindowPixelFormat in order to use a deferent one that probably much better than the default.
- Wire2dSectionClip
Defines if Section Clips applied with wire2d render mode.
- Wire2dUseFontOutLines
Defines how fonts are drawn with wire2d render mode.
Methods
- CopyFrom(vdRenderGlobalProperties)
Copies all properties from another object.
- DeSerialize(DeSerializer, string, object)
This Function is called foreach field name of the grPatternLine object when opening in vdml format.
- EnsureOpenGLContext()
Forces default global opengl context to be created
- GetImageReduceSize(Size, int)
Returns a reduced of imput size so the sizewidth * sizeheight * bits_per_pixel / 8 to be smaller or equal with the MaxBmpMemorySize property.
- Reset()
Reset serializable properties to default values.
- ResetOpenGLContext()
Internally used only. Release selected OpenGL context in order to be recreated with new VectorDraw.Render.OpenGL.OpenGLImports.PIXELFORMATDESCRIPTOR.DefaultWindowPixelFormat Must be called just before VectorDraw control is disposed.
- Serialize(Serializer)
This Function is called when saving the grPatternLine object to vdml format.
- ToString()
Gets an empty System.String.
- Update()
Update rendering properties