entity_with_ray
List of: Classes
Subjects: Picking
Contents: Kernel

Purpose: Combines an ENTITY and a pick_ray.

Derivation: entity_with_ray : ACIS_OBJECT : -

Filename: kern/kernel/geomhusk/entwray.hxx

Description: An entity_with_ray is a combination of an ENTITY and a pick_ray. Some API routines use this class to indicate the position on a curve where the user wants to operate. In api_trim_curve, for example, an entity_with_ray specifies the portion of the curve to be kept. It also computes a position on the curve near the desired solution for procedures when there are multiple solutions.

References: KERN ENTITY, pick_ray

Constructor: public: entity_with_ray::entity_with_ray ();


C++ allocation constructor requests memory for this object but does not populate it.






public: entity_with_ray::entity_with_ray (


ENTITY*, // entity


const pick_ray& // pick ray


);


C++ initialize constructor requests memory for this object and populates it with the data supplied as arguments.






public: entity_with_ray::entity_with_ray (


ENTITY*, // entity


const SPAposition&, // position


const SPAunit_vector& // unit vector


);


C++ initialize constructor requests memory for this object and populates it with the data supplied as arguments.



Methods: public: ENTITY* entity_with_ray::entity () const;


Gets the ENTITY.






public: pick_ray entity_with_ray::ray () const;


Gets the pick_ray.






public: void entity_with_ray::set_entity (


ENTITY* ent // entity


);


Sets the ENTITY.






public: void entity_with_ray::set_ray (


const pick_ray& ray // pick ray


);


Sets the pick_ray.
PDF/KERN/31CLE.PDF
HTM/DATA/KERN/KERN/31CLE/0015.HTM