cgma
SphereSurface Class Reference
Inheritance diagram for SphereSurface:
SurfaceVolume

List of all members.

Public Member Functions

 SphereSurface (const Vector3d &center_p, double radius_p)
virtual ~SphereSurface ()
virtual double getFarthestExtentFromOrigin () const

Protected Member Functions

virtual iBase_EntityHandle getHandle (bool positive, iGeom_Instance &igm, double world_size)

Protected Attributes

Vector3d center
double radius

Detailed Description

Definition at line 383 of file volumes.cpp.


Constructor & Destructor Documentation

SphereSurface::SphereSurface ( const Vector3d center_p,
double  radius_p 
) [inline]

Definition at line 390 of file volumes.cpp.

                                                             :
    SurfaceVolume(), center(center_p), radius(radius_p)
  {}
virtual SphereSurface::~SphereSurface ( ) [inline, virtual]

Definition at line 394 of file volumes.cpp.

{}

Member Function Documentation

virtual double SphereSurface::getFarthestExtentFromOrigin ( ) const [inline, virtual]

Implements SurfaceVolume.

Definition at line 396 of file volumes.cpp.

                                                       {
    return (center.length() + radius);
  }
virtual iBase_EntityHandle SphereSurface::getHandle ( bool  positive,
iGeom_Instance igm,
double  world_size 
) [inline, protected, virtual]

Implements SurfaceVolume.

Definition at line 401 of file volumes.cpp.

                                                                                               {

    int igm_result;
    iBase_EntityHandle sphere;

    iGeom_createSphere( igm, radius, &sphere, &igm_result);
    CHECK_IGEOM( igm_result, "making sphere" );

    iGeom_moveEnt( igm, sphere, center.v[0], center.v[1], center.v[2], &igm_result );
    CHECK_IGEOM( igm_result, "moving sphere" );


    iBase_EntityHandle final_sphere = embedWithinWorld( positive, igm, world_size, sphere, false );
    
    return final_sphere; 
  }

Member Data Documentation

Definition at line 386 of file volumes.cpp.

double SphereSurface::radius [protected]

Definition at line 387 of file volumes.cpp.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines