Drawing3d documented Class Library

GdiDevice Methods

The methods of the GdiDevice class are listed below. For a complete list of GdiDevice class members, see the GdiDevice Members topic.

Public Instance Methods

addLight (inherited from MNDevice) With this method you can add a Light.
BeginPaint (inherited from MNDevice) The first call in the Paint-method is BeginPaint. It clears the Background by ClearScreen and sets the ProjectionBase
Changed (inherited from MNDevice) Call this method, if the outlook of the device has been changed. Refresh invokes every time a Painting, but the method Changed() waits for example if all mousevents are called. So it is better for the performance to call Changed.
ClearScreen Overrides this method and draws a filledRectangle whith Graphics.FillRectangle method.
ClipPlane (inherited from MNDevice) A call to this method hides all parts on the side of the Plane, which are on the other side of the planes normalvector. Id is an integer between 0 and 7.
Close (inherited from MNDevice) Closes the device.
DeleteTexture (inherited from MNDevice) Delete a Texture in a Device and gives its handle free.
DisableClipPlane (inherited from MNDevice) Disable the Clippingplane, which was called by ClipPlane
DisplayListFree (inherited from MNDevice) Removes a display list from the engine.
DisplayListPlay (inherited from MNDevice) Draws a display list, which is created by getDisplayList
DoPaint (inherited from MNDevice) DoPaint calls the paintmetod of the Root at first, then the paintmethod of the Work and finally the OnPaint-event.
drawCurve (inherited from MNDevice)Overloaded. Draw a Curve
DrawEntity (inherited from MNDevice) If you have an Entity with an overridden Drawing3d.Entity.Draw(MNDevice) or a filled Entity.OnDraw, you can call this method. It will call the drawmethods of the entity.
drawImage (inherited from MNDevice)Overloaded. This primitive draw method draws an Image at a xyz-position relative to the projection base. The image is static, if you change the the ProjectionBase.
drawLine Draws a line by calling the drawPolyLine, where the xyzArray has only two points
drawMesh (inherited from MNDevice) Draws a Mesh.
drawPoint (inherited from MNDevice)Overloaded. Draws a point. The kind of drawing is described in pt. MNDevice.PointData
drawPolyCurve (inherited from MNDevice) Draws an array of curve.
drawPolyLine Overrides this method and calls a Graphics.FillPolygon resp. Graphics.DrawLines
drawPolyPolyCurve (inherited from MNDevice) This primitive draw method draws a Loca. In case of PolygonMode = line, simple curves are drawn. If PolygonMode = Fill, then a filled area, bounded by curves, is drawn. The Loca must have the property that the entries are coherent curve arrays and additionally, there are no cross points. If this is done, the curve arrays, which lay in an other filled curve array is "drawn as hole". If it lays in a hole, the curvearray is filled drawn.
drawPolyPolyLineOverloaded. Overrides this method and call the Graphics.FillPolygon method.
drawPolyPolyLine (inherited from MNDevice)Overloaded. Draws a Polypolyline with Normals
drawSphere (inherited from MNDevice) Draws a sphere at (0,0,0) with "Radius"
drawSurface (inherited from MNDevice)Overloaded. Call the drawSurface-method with resolutions taken from the surface. See UResolution and VResolution.
drawText Overrides drawText and calls the gdifunction Graphics.DrawString.
drawTexture (inherited from MNDevice)Overloaded. Draws a texture at a position.
drawTriangle (inherited from MNDevice) Draws a triangle with Normals and texture, which is given by TexturePos
EndPaint (inherited from MNDevice) The last call in the Paint-method is EndPaint. It fires the SwapBuffers-method
Equals (inherited from Object) 
FastRefresh (inherited from MNDevice) Copies the Background to the to Drawbuffer and invokes the OnPaintFloat-method. At least a SwapBuffers-call moves the drawbuffer to the screen. "Background" means in that context: All paintings, which are made in a drawmethod. The "Foreground" is painted in a drawFlo
FromScr (inherited from MNDevice)Overloaded. Calculates a Line from a Screen coordinate to the Camera.
getDisplayList (inherited from MNDevice) Contructs a display list and returns that. You can draw this list with DisplayListPlay and destroy by DisplayListFree
GetGlyphOutLine (inherited from MNDevice) Returns a Loca for the Curves of a Char.
GetHashCode (inherited from Object) 
GetMaxBox (inherited from MNDevice)Overloaded. Gets a envelopping box for all elements rendered by the device.
GetSmoothBase (inherited from MNDevice) Retrieves a Base, which lies on the catched object. The direction of the x-axes is given by the direction of a catched Direction, the z-axis is the normal of a catched Normal. The BaseOrigin is put to the nearestpoint to the point closest to the the catch object. If you draw this base, it smooths around the object, which lays under the cursor.
GetTextExtent Overrides this method and calculates the TextExtents from a string
GetType (inherited from Object) 
LookAt (inherited from MNDevice) Sets the camera of the device.
MakeCurrent (inherited from MNDevice) If you have more devices this call makes it current
MouseUp (inherited from MNDevice) The device gets the MouseUp-event from the WinControl.
MulMatrix (inherited from MNDevice) By a call of MulMatrix the modelmatrix will be multiplied by a the transformation matrix. And so you can transform your drawings.
MulTextureMatrix (inherited from MNDevice) By a call of MulTextureMatrix the TextureMatrix will be multiplied by a the transformation matrix. And so you can transform your drawings. Matrix, which transform the TexureMatrix.
OffsetLeftTop Returns the physical Offset left top of the printable area of the paper you are printing on and does not give you access to the actual margins or unprintable areas.
OffsetRightBottom Returns the physical Offset right bottom of the printable area of the paper you are printing on and does not give you access to the actual margins or unprintable areas.
Paint (inherited from MNDevice) Paint calls the three methods BeginPaint, DoPaint and EndPaint. The Method is allways called, if WinControl should be painted.
PopMatrix (inherited from MNDevice)Overloaded. To save the ModelMatrix for a short time you can push it with PushMatrix and restore with PopMatrix.
popTag (inherited from MNDevice) Pops a tag, which was pushed with pushTag
PushMatrix (inherited from MNDevice)Overloaded. To save the ModelMatrix for a short time you can push them with PushMatrix and restore with PopMatrix
pushTag (inherited from MNDevice) Pushes a Tag to a Tag-stack. If the mouse hits a draw element the last tag is set into the HitItem. You can get it from the HitItemlistpopTag
Refresh (inherited from MNDevice) Refreshes the device.
removeLight (inherited from MNDevice) Removes a Light from the list Lights. Its the same as Lights.Remove(Light);
ResetShadow (inherited from MNDevice)
Resize (inherited from MNDevice) If WinControl was resized, the method Resize is called.
Rotate (inherited from MNDevice) Rotates the following drawings by a call to MulMatrix. Call before this PushMatrix and after the painting a PopMatrix
Select (inherited from MNDevice) Clears the HitItemlist and searches the draw elements, which are close to the point p. This means, that the distance to p is less then CatchDistance The method calls the Paintmethod of the device with RenderMode = RenderMode.Select.
SetAntiAliasing (inherited from MNDevice) Sets antialiasing.
setCulling (inherited from MNDevice) The wirtual setter of the Culling-property
SetCurrentCursor (inherited from MNDevice) If the defaultcursor is null then the currentcursor will be taken.
SetDefaultCursor (inherited from MNDevice) Sets a defaultcursor.
SimulateMouseDown (inherited from MNDevice) By a call to this method you can simulate a mousedownclick. See also SimulateMouseMove
SimulateMouseMove (inherited from MNDevice) By a call to this method you can simulate a mousemove. See also SimulateMouseDown
SimulateMouseUp (inherited from MNDevice) By a call to this method you can simulate a mousedownclick. See also SimulateMouseMove
SolidConvexOverloaded. Overrides the SolidConvex method and calls the drawPolyLine method.
SolidConvex (inherited from MNDevice)Overloaded. Overloaded method from SolidConvex The value for the parameter TextureEnable is set to true.
SwapBuffers Overrides the SwapBuffers method an draws an image which source is handled by an internal DoubleBuffer.
ToScr (inherited from MNDevice)Overloaded. Calculates the screen coordinates of a 3d-Point p.
ToString (inherited from Object) 
Translate (inherited from MNDevice) Translates the following drawings by a call to MulMatrix. Call before this PushMatrix and after the painting a PopMatrix
UpDated (inherited from MNDevice) If you make any modifications in the component, you should first call
UpDating()
..Change some things
UpDated()
In this case the method Refresh will be called only one time. Internal a counter will be incremented for UpDating and decremented by UpDated. If he is 0 then Refresh is called. See UpDating
UpDating (inherited from MNDevice) If you make any modifications in the component you should first call
UpDating()
..Change some things
UpDated()
In this case the method Refresh will be called only one time. Internal a counter will be incremented for UpDating and decremented by UpDated. If it is 0 then Refresh is called. See UpDated

Protected Instance Methods

CheckViewPort Overrides the CheckViewPort and and creates an internal double buffer, which is only a Bitmap and will be copied to the screen with the SwapBuffers method.
CopyFromSaveBuffer (inherited from MNDevice) Copy the accumulation buffer to the rendercontext. Assumed is PaintFloatEnable.
CopyToSaveBuffer (inherited from MNDevice) Copies the RenderContext to the accumulation buffer. Assumed is PaintFloatEnable.
CreateMaterial (inherited from MNDevice) This method is called from the constructur. For example the OpenGlDevice overrides them, to implement OglMaterial
Disposed (inherited from MNDevice) Overrides this method ans sets the WinControl-property to null.
Finalize (inherited from MNDevice)
getCulling (inherited from MNDevice) The virtual getter of the property Culling
GetGraphics Overrides this method and returns the DoubleBufferdGraphics.
getModelMatrix (inherited from MNDevice) protected getMethod for the ModelMatrix-property.
getProjectionMatrix (inherited from MNDevice) GetMethod of the ProjectionMatrix.
GetTextureMatrix (inherited from MNDevice) Virtual getmethod of the property TextureMatrix
getWorldHeight (inherited from MNDevice) Getmethod of the WorldHeight-property
getWorldWidth (inherited from MNDevice) GetMethod of the property WorldWidth
GraphicsPaint (inherited from MNDevice) After painting in the "normal" device, a call to GraphicsPaint is done.
IsReady (inherited from MNDevice) The method IsReady returns true, if the device is able to draw something. For example: if there is no Control or the graphic engine is not installed then IsReady is false.
KeyDown (inherited from MNDevice) This method is called from the EventServer when a key is clicked down.
KeyPress (inherited from MNDevice) This method is called from the EventServer, when a key is pressed.
KeyUp (inherited from MNDevice) This method is called from the EventServer when a key goes up.
LineStrip Overrides Linestrip, and calls simply drawPolyLine
MemberwiseClone (inherited from Object) 
MouseDown (inherited from MNDevice) The device gets the MouseDown-event from the WinControl.
MouseMove (inherited from MNDevice) The device gets the MouseMove - event from the WinControl.
newLight Overrides this method and returns a GdiLight, which nothing does.
RealizeAmbient (inherited from MNDevice)
RealizeDiffuse (inherited from MNDevice)
RealizeEmission (inherited from MNDevice)
RealizeShininess (inherited from MNDevice)
RealizeSpecular (inherited from MNDevice)
RealizeTranslucent (inherited from MNDevice)
SetClockWise (inherited from MNDevice) Virtual settermethod of the Clockwise-property
setFontName (inherited from MNDevice) Setmethod of FontName
SetGraphics (inherited from MNDevice) 
SetLighting (inherited from MNDevice) Setmethod of the Lighting-property
setModelMatrix (inherited from MNDevice) protected SetMethod for the ModelMatrix-property.
setPencolor (inherited from MNDevice) The protected settermethod of the property PenColor.
setPenStyle (inherited from MNDevice) The setmethod of the property PenStyle
SetPenWidth (inherited from MNDevice) Setmethod of the property PenWidth.
SetPolygonmode (inherited from MNDevice) Setmethod of the property PolygonMode
setProjectionMatrix (inherited from MNDevice) SetMethod of the ProjectionMatrix.
SetRoot (inherited from MNDevice) The virtual settermethod of Root property.
setShadow (inherited from MNDevice) The protected Settermethod for the Shadow-property.
setTexture (inherited from MNDevice) Virtual setmethod of the property Texture
SetTextureMatrix (inherited from MNDevice) Virtual setmethod of the property TextureMatrix
SetTranslucent (inherited from MNDevice)
SetViewPort (inherited from MNDevice) Setmethod of the property ViewPort"/>
SetWinControl (inherited from MNDevice) Setmethod of the property WinControl
setZoomFactor (inherited from MNDevice) Setmethod of the property Zoomfactor
SizeChanged (inherited from MNDevice) If the size of the WinControl was changed, this method is called.
TimeEvent (inherited from MNDevice) A protected method, which call OnTick,if is assigned.
UpDateMaterial Overrides this method and sets the the current fillcolor to the ambient part of the material.
ValidHandleCreated (inherited from MNDevice) A valid handle has been created. This means that the WinControl is set and has a good Handle. In the method CheckViewPort and UpDateMaterial is fired.
ValidHandleDestroyed (inherited from MNDevice) If the Handle of the WinControl is destructed or WinControl is set to null, the ValidHandleDestructed will be called. This is a good moment to reset any created things.

See Also

GdiDevice Class | Drawing3d.Devices Namespace