EW_Object | +---- EW_Generic | +---- EW_Sphere | +---- EW_ImplicitSphere
The EW_ImplicitSphere primitive provides a generic reprsentation of a sphere. The EW_Sphere is defined by a center point, a radius, an x-y-z scale vector and a Euler rotation vector.
EW_Sphere::EW_Sphere()
The constructor creates a sphere with a radius of 10.0, and assigns a new name to the EW_Sphere. The EW_Sphere (like most other objects), does not allocate a point in the point_db for itself. The creator of the EW_Sphere is responsible for doing this.EW_bool EW_Sphere::uses_point (int p)
Returns true if point p is the center of the EW_Sphere.EW_bool EW_Sphere::select_point_down (int p, sgVec3 v)
When the EW_Sphere's center point is selected (by a mouse down event), this method is called. The EW_Sphere doesn't use this event.EW_bool EW_Sphere::select_point_drag (int p, sgVec3 v) When the EW_Sphere's center point is selected and then dragged (by an FL_DRAG event), this method is called.
void EW_Sphere::update_gui() Update the user interface with the current values.
void EW_Sphere::write (FILE *file, int ind) This method writes the EW_Sphere object to the file specified by the first argument in Extreme Wave's native file format. The second argument is the amount of space to indent this object (in columns) so that the resulting file is pretty-printed.
void EW_Sphere::initialize() This method initializes the class so that it can be used by Extreme Wave. This should be done only once.
void EW_Sphere::pdb_register() This method registers all the available procedures with the procedural database.
void EW_Sphere::replicate() Create a new sphere with the same properties as this one. All points will be duplicated.
void EW_Sphere::gl_draw() Draws the sphere.
SCM EW_Sphere::set_radius(SCM a)
SCM EW_Sphere::get_radius(SCM a)
SCM EW_Sphere::set_center(SCM a)
SCM EW_Sphere::get_center(SCM a)
SCM EW_Sphere::set_bone(SCM a)
SCM EW_Sphere::get_bone(SCM a)
SCM EW_Sphere::set_material(SCM a)
SCM EW_Sphere::get_material(SCM a)
SCM EW_Sphere::set_scale(SCM a)
SCM EW_Sphere::get_scale(SCM a)
SCM EW_Sphere::set_rotate(SCM a)
SCM EW_Sphere::get_rotate(SCM a)
EW_Sphere* EW_Sphere::scm2obj(SCM a) Convert a scheme EW_Sphere object to a C++ EW_Sphere object.
SCM EW_Sphere::scm2obj(EW_Object *a) Convert an EW_Sphere object to a scheme EW_Sphere object.
none.