Drawing3d documented Class Library

HitItem Members

HitItem overview

Public Instance Constructors

HitItem Constructor Initializes a new instance of the HitItem class.

Public Instance Fields

_type Indicates the PrimType
Direction If DirectionEnabled is true, the direction is valid and gives the direction of a catched line.
DirectionEnabled The property direction is not ever valid. DirectionEnabled equals true indicates, that the property Direction is valid. For example: If there is a hit to the inside of a PolyLine no Direction is enabled. On the other side, if the hit is on the contour of the polyLine, then a direction is given by the catched line.
distance The distance to the
Entity The entity, in which the primitive draw is called.
Info This field reports additional info about the catched primitive draw. To access the data you have to typecast the property info with one of the infotypes HitInfo. This depends on the KindOfPrimitiv.
Normal If PlaneEnabled then Normal returns a normal vector to the catched plane.
PlaneEnabled The property Normal is not allways valid. For example if you click on a simple line then no normal vector to a plane is valid.
If PlaneEnabled = true then the vector Normal retrieves a normal vector to a planem which is catched.
PointEnabled This property is true if you catch a point. May by, that PlaneEnabled is also true: in this case the point belongs for example to a polyline which defines a plane.

Public Instance Properties

hitItemList This is the container, in which the HitIten is embedded.
KindOfPrimitiv KindOfPrimitiv indicates, what primitive drawing is catched. Possible are : Line, PolyLine, PolyPolyLine, Curve, PolyCurve, PolyPolyCurve, Point, Text, Bitmap, Surface. They determes wheter kind of class Info is.
PolygonMode Retrieves the PolygonMode of the device for a catched object.
PrimCount If you have many primitive calls in a draw method, then PrimCount indicates, which of this calls is catched. For example: Your Drawmethod look like this:
...
device.drawLine(new xyz(0,1,0), new xyz(2, 2, 2));
device.drawPolyLine(xyzarray);
...
if the PolyLine is catched then you retrieves a PrimCount of 1.
Tag This field is for free use. It will be set by the method pushTag
WorldPoint Gives the coordinates in world coordinates.
ZOrder Gives the Zorder of an element, this means the distance to the Eye

Public Instance Methods

Equals (inherited from Object) 
GetHashCode (inherited from Object) 
GetType (inherited from Object) 
ToString (inherited from Object) 

Protected Instance Methods

Finalize (inherited from Object) 
MemberwiseClone (inherited from Object) 

See Also

HitItem Class | Drawing3d Namespace