SliceO_Class Inside Tests

 

This section deal with the space occupied by the class (and its descendants) when displayed in each of the 2D windows. all screen positions are expressed in "Inf" (infinite) space.

 

Each instance of a class is assigned one bounding box for each active window.  It is the box that contain all the graphics of the class and its descendants inside that window.

 

Private:

m_inside (Region_2D *)

A variable containing the bounding box of this instance.

 

Public:

Inside_Pt

Return 1 if a point is inside the region.

 

Inside_Range

Return 1 if there is an intersection between the region and the one provide in argument

 

Inside_Get

Return a the region covered by the instance of the class and its descendant.

 

Inside_Clear

 

Reset the region.

Inside_Set

Set the value of the region from a region or 4 arguments

 

Inside_Add

Add a region to the existing region.