|
| | Box2 () |
| | Contructs a Box2 object, a specialization of Box for storing 4 elements.
|
| |
| void | set (T xmin, T xmax, T ymin, T ymax) |
| | Sets the four elements of the Box2 object with the four input arguments.
|
| |
| void | set (const S &min, const S &max) |
| | Sets the minimum and maximum values of the box.
|
| |
| S | min () const |
| | Gets the minimum values, namely xmin and ymin, of the Box2 object.
|
| |
| void | setMin (const S &min) |
| | Sets the minimum values, namely xmin and ymin, for the Box2 object.
|
| |
| S | max () const |
| | Gets the maximum values, namely xmax and ymax, of the Box2 object.
|
| |
| void | setMax (const S &max) |
| | Sets the maximum values, namely xmax and ymax, for the Box2 object.
|
| |
| S | center () const |
| | Gets the center of the Box2 object, which means the center of the rectangular zone.
|
| |
| S | extent () const |
| | Gets the extent of the Box2 object, which means the length and width of the rectangular zone.
|
| |
| | Box (int size) |
| | Constructs a box object.
|
| |
| const T & | operator[] (int index) const |
| | Provides a read-only access to the element at a specific index(position) within the Box object.
|
| |
| T & | operator[] (int index) |
| | Provides a read-write access to the element at a specific index(position) within the Box object.
|
| |
| | 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.
|
| |
| T * | data () |
| | Gets the data array of the Tuple.
|
| |
| const T * | 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 T *data) |
| | Sets the data array of the Variant.
|
| |
| Tuple< T > & | 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.
|
| |
| | Variant () |
| |
| virtual | ~Variant () |
| |
| const std::string & | type () const |
| |
template<typename T, typename S>
class cil::Box2< T, S >
The Box2 is a templated class inheriting from the Box class, which represents a rectangular zone.