VisualizationFoundation CAT2DBoundingSphere

Usage: you must use this class as is. You should never derive it.


public class CAT2DBoundingSphere

Class to manage bounding surface of 2D elements.
Role:This class is used to manage the space used by a 2D element. This information is used at the rendering time to know if a given element is visible on the screen and needs to be drawn or not. 2DBoundingSpheres are Circles. For performance issues BoundingSpheres need to be as close to the object they are linked to as possible. Idealy they represent the smallest circle containing the object. You can add 2 2DBoundingSpheres using the += operator inherited from boundingElements.


Constructor and Destructor Index


o CAT2DBoundingSphere()
Construct an empty boundingSphere.
o CAT2DBoundingSphere(CAT2DBoundingSphere&)
Copy constructor
o CAT2DBoundingSphere(CATMathPoint2Df&,float,float)
Constructs a 2DBoundingSphere with a given center, radius and radius in mm.
o ~CAT2DBoundingSphere()
Destructor

Method Index


o GetCenter()
Returns the 2DBoundingSphere center.
o GetRadius()
Returns the radius of the 2DBoundingSphere.
o GetRadiusMM()
Returns the radius in millimeter of the 2DBoundingSphere.

Constructor and Destructor


o CAT2DBoundingSphere
public CAT2DBoundingSphere()
Construct an empty boundingSphere. default center will be 0,0 and default radius 1
o CAT2DBoundingSphere
public CAT2DBoundingSphere( const )
Copy constructor
o CAT2DBoundingSphere
public CAT2DBoundingSphere( const center,
const radius,
const radius_mm= 0.f)
Constructs a 2DBoundingSphere with a given center, radius and radius in mm.
Parameters:
center
The center of the boundingSphere.
radius
The radius of the boundingSphere in model unit.
radius_mm
This is used for elements with fixed size on the screen on which zoom has no effect. Default is 0.
o ~CAT2DBoundingSphere
public virtual ~CAT2DBoundingSphere()
Destructor

Methods


o GetCenter
public GetCenter()
Returns the 2DBoundingSphere center.
o GetRadius
public GetRadius()
Returns the radius of the 2DBoundingSphere.
o GetRadiusMM
public GetRadiusMM()
Returns the radius in millimeter of the 2DBoundingSphere.

This object is included in the file: CAT2DBoundingSphere.h
If needed, your Imakefile.mk should include the module: CATVisFoundation

Copyright © 1999-2015, Dassault Systèmes. All rights reserved.