CADability dotNET
The Projection type exposes the following members.
Constructors
Name | Description | |
---|---|---|
Projection(CoordSys) |
Creates a new parallel projection to the provided coordinate system
| |
Projection(Projection) |
Creates a clone of the provided projection
| |
Projection(Projection..::..StandardProjection) |
Creates a new standard projection according to Projection..::..StandardProjection | |
Projection(SerializationInfo, StreamingContext) |
Constructor required by deserialization
| |
Projection(GeoVector, GeoVector) |
Creates a new parallel projection with the provided direction and the direction of the vector that should become the vertical direction.
|
Methods
Name | Description | |
---|---|---|
BoundingRectWorld2d |
Returns a BoundingRect in the 2d world coordinate system according to the provided view positions.
The view coordinate system is the windows forms system.
The 2d world coordinate system is for the parallel projection a plane perpendicular to the projection direction
scaled the same way as the model. For the perspective projection it is the back plane of the displayed frustum of pyramid.
| |
Clone |
Returns a clone of this projection
| |
DeviceRect | ||
DrawingPlanePoint(Point) |
Returns the point in the worldcoordinate system corresponding to the (mouse-) position p and the drawingplane
| |
DrawingPlanePoint(GeoPoint2D) |
Liefert den Raumpunkt (Welt3D) zum Welt2D Punkt gemäß Zeichenebene (DrawingPlane)
| |
GetExtent | ||
GetObjectData | ||
GetOpenGLProjection | ||
GetPickSpace(Rectangle) |
Returns a PickArea, viewRect is in window coordinates
| |
GetPickSpace(RectangleF) |
Returns a PickArea, viewRect is in window coordinates
| |
GetPickSpace(BoundingRect) |
Returns a PickArea, rectWorld2D is in 2-d world coordinates
| |
GetPlacement()()()() | ||
GetPlacement(Double%, Double%, Double%) |
Liefert die Werte für die Platzierung. Achtung: die Y-Werte müssen mit dem negativen
Faktor multipliziert werden, denn die Platzierung dreht die y-achse um!
| |
MovePlacement | ||
PlanePoint |
Gets the position of a given point (usually a mouse position in view coordinates) in
a given plane.
| |
PointBeam |
Returns a beam corresponding to the 2-dimensional mouse position. The mouse position corresponds to a beam
in the model which is seen as a point from the viewpoint. The result is in world coordinates
of the model. Works for both parallel and perspective projection.
| |
PointWorld2D | ||
PrependModOp | ||
Project | ||
Project2D | ||
ProjectF |
Berechnet die Projektion des gegebenen Punktes ins Zweidimensionale mit
Berücksichtigung der Skalierung und Platzierung im Zweidimensionalen, also
in das zweidimensionale Papierkoordinatensystem und nicht in das
Weltkoordinatensystem.
| |
ProjectUnscaled(GeoPoint) |
Berechnet die Projektion des gegebenen Punktes ins Zweidimensionale ohne
Berücksichtigung der Skalierung und Platzierung im Zweidimensionalen, also
in das zweidimensionale Weltkoordinatensystem und nicht in das
Papierkoordinatensystem.
| |
ProjectUnscaled(GeoVector) | ||
SetDirection |
Sets the view direction and the vertical direction of this projection.
| |
SetPerspective(GeoPoint, GeoVector, Rectangle, BoundingCube) | ||
SetPerspective(GeoPoint, GeoVector, Rectangle, BoundingCube, GeoPoint) | ||
SetPlacement(Rectangle, BoundingRect) |
Stellt die Platzierung im Zweidimensionalen ein: Das Quellrechteck
soll in das Zielrechteck passen.
| |
SetPlacement(RectangleF, BoundingRect) | ||
SetPlacement(Double, Double, Double) | ||
SetUnscaledProjection | ||
UnProjectUnscaled(GeoPoint2D) | ||
UnProjectUnscaled(GeoVector2D) | ||
WindowToWorld |
Returns the provided point in the world coordinate system
| |
World2DToWindow(BoundingRect) | ||
World2DToWindow(GeoPoint2D) | ||
WorldToWindow |
Returns the window position of a point in the world coordiate system. Point (0,0) is the top left point of the window
|
Fields
Name | Description | |
---|---|---|
LayoutFactor |
Some Attributes refer to paper bound dimensions: e.g. the linewidth or textsize
may be specified in mm on the paper. So we need the posibility to transform linear
dimensions from layout to world. This is doune by the LayoutFactor;
| |
LineWidthFactor |
A factor for the display line width
| |
UseLineWidth |
Flag indicating the use of line width
|
Properties
Name | Description | |
---|---|---|
DeviceToWorldFactor | ||
Direction | ||
DrawingPlane | ||
FromTop | ||
Grid | ||
InverseProjection | ||
IsPerspective |
Returns true if this projection is a perspective projection in contrast to a parallel projection
| |
PerspectiveProjection | ||
PlacementFactor | ||
Precision | ||
ProjectionPlane | ||
ShowDrawingPlane |
Display hint, whether to show the drawing plane
| |
UnscaledProjection | ||
WorldToDeviceFactor |
Events
Name | Description | |
---|---|---|
ProjectionChangedEvent |
Event beeing issued when the projection changes
|
Explicit Interface Implementations
Name | Description | |
---|---|---|
IDeserializationCallback..::..OnDeserialization |