Cumulia Illustrator Rendering Engine v2.1.0
A Rendering engine for industrial CAD/CAE model and optimized for greatest performance
 
Loading...
Searching...
No Matches
cil::Box2i Class Referencefinal

The Box2i class inherits from Box2, specilizing the template parameters to int for element type and Vector2i for representing minimum and maximum extents of the box. More...

#include <box.h>

Inheritance diagram for cil::Box2i:
cil::Box2< int, Vector2i > cil::Box< int > cil::Tuple< int > cil::Variant

Public Member Functions

 Box2i ()
 Constructs a Box2i object, and sets its minimum and maximum extent to(0, 0) and(1, 1).
 
 Box2i (int xmin, int xmax, int ymin, int ymax)
 
 Box2i (const Vector2i &min, const Vector2i &max)
 
 Box2i (const Box2i &other)
 
- Public Member Functions inherited from cil::Box2< int, Vector2i >
 Box2 ()
 Contructs a Box2 object, a specialization of Box for storing 4 elements.
 
void set (int xmin, int xmax, int ymin, int ymax)
 Sets the four elements of the Box2 object with the four input arguments.
 
void set (const Vector2i &min, const Vector2i &max)
 Sets the minimum and maximum values of the box.
 
Vector2i min () const
 Gets the minimum values, namely xmin and ymin, of the Box2 object.
 
void setMin (const Vector2i &min)
 Sets the minimum values, namely xmin and ymin, for the Box2 object.
 
Vector2i max () const
 Gets the maximum values, namely xmax and ymax, of the Box2 object.
 
void setMax (const Vector2i &max)
 Sets the maximum values, namely xmax and ymax, for the Box2 object.
 
Vector2i center () const
 Gets the center of the Box2 object, which means the center of the rectangular zone.
 
Vector2i extent () const
 Gets the extent of the Box2 object, which means the length and width of the rectangular zone.
 
- Public Member Functions inherited from cil::Box< int >
 Box (int size)
 Constructs a box object.
 
const int & operator[] (int index) const
 Provides a read-only access to the element at a specific index(position) within the Box object.
 
int & operator[] (int index)
 Provides a read-write access to the element at a specific index(position) within the Box object.
 
- Public Member Functions inherited from cil::Tuple< int >
 Tuple (int size)
 Constructs a Tuple object with a specified number of elements, and initialize all elements to 0.
 
virtual ~Tuple ()
 
int size () const
 Gets the number of elements of the Tuple.
 
int * data ()
 Gets the data array of the Tuple.
 
const int * data () const
 Gets the data array of the Tuple, and the data could not be modified upon which this function is called.
 
void setData (const int *data)
 Sets the data array of the Variant.
 
Tuple< int > & operator= (const Tuple &other)
 Copys the data of another Tuple to the one on which the operator is invoked.
 
bool operator== (const Tuple &other) const
 Compares the Tuple with another one, and returns true if they are equal, otherwise returns false.
 
bool operator!= (const Tuple &other) const
 Compares the Tuple with another one, and returns false if they are equal, otherwise returns true.
 
- Public Member Functions inherited from cil::Variant
 Variant ()
 
virtual ~Variant ()
 
const std::string & type () const
 

Additional Inherited Members

- Protected Attributes inherited from cil::Tuple< int >
int * m_data
 The data array of the Tuple.
 
int m_size
 The number of elements that the data array of the Tuple holds.
 
- Protected Attributes inherited from cil::Variant
std::string m_type
 

Detailed Description

The Box2i class inherits from Box2, specilizing the template parameters to int for element type and Vector2i for representing minimum and maximum extents of the box.

Constructor & Destructor Documentation

◆ Box2i() [1/4]

cil::Box2i::Box2i ( )

Constructs a Box2i object, and sets its minimum and maximum extent to(0, 0) and(1, 1).

◆ Box2i() [2/4]

cil::Box2i::Box2i ( int xmin,
int xmax,
int ymin,
int ymax )

◆ Box2i() [3/4]

cil::Box2i::Box2i ( const Vector2i & min,
const Vector2i & max )

◆ Box2i() [4/4]

cil::Box2i::Box2i ( const Box2i & other)