Entity
Public Class Entity
All drawing entities should derive from this class.
Public Fields
ModificationCount |
System.Int64 |
Properties
CADFile readonly |
CADFile |
|
ID |
System.Int32 |
|
Layer readonly |
Layer |
|
Parent |
System.Object |
|
PrimitiveType readonly |
System.String |
|
Tag |
System.String |
|
Transform |
CamBam.Geom.Matrix4x4F |
Methods
ApplyTransformation |
Boolean ApplyTransformation () Multiply the points in the object by the transformation matrix. |
|
ApplyTransformation |
Boolean ApplyTransformation (Matrix4x4F xm) Multiply the points in the object by a transformation matrix. |
|
ClearEventHandlers |
Void ClearEventHandlers () | |
Clone |
Entity Clone () | |
CloneFrom |
Void CloneFrom (Entity src) | |
Flatten |
Boolean Flatten () Set all Z values to 0 in a polyline |
VB |
Flatten |
Boolean Flatten (Double Z) Set all Z values to Z in a polyline |
|
GetCentroid |
Point3F GetCentroid () | |
GetExtents |
Void GetExtents (PointF& min, PointF& max) Find the extrema points of this primitive. Parameters: min: A point that will receive the minimum coordinates. max: A point that will receive the maximum coordinates. |
|
GetExtrema |
Void GetExtrema (Point3F& min, Point3F& max) Find the extrema points of this primitive. Parameters: min: A point that will receive the minimum coordinates. max: A point that will receive the maximum coordinates. |
|
GetScreenExtents |
Void GetScreenExtents (PointF& min, PointF& max, Matrix4x4F xm) | |
Paint |
Void Paint (Display3D d3d) | |
PointIntersect |
Boolean PointIntersect (Point2F p, Matrix4x4F m, Double tolerance) Returns true if a point will intersect part of the primitive. Used for mouse hit testing. Parameters: p: The test point. gv: The view that is displaying the object. tolerance: How close the point must be to be considered a hit. Returns: |
|
PointIntersect |
Boolean PointIntersect (Point2F p, Matrix4x4F m, Double tolerance, Point3F& nearest) | |
PropertyChanged |
Void PropertyChanged (String propertyname, Object newvalue) | |
PropertyChanging |
Void PropertyChanging (String propertyname, Object newvalue) | |
Update |
Void Update () Instructs the primitive to refresh any internal data if the the object has changed. |
|
UpdateDependentMops |
Void UpdateDependentMops () | |
WithinRect |
Boolean WithinRect (RectangleF r, Matrix4x4F xm) |