C3D Toolkit
Kernel - 117982, Vision - 2.9.2.2
|
Fields class defines four rectangle fields. More...
#include <vsn_fields.h>
Public Member Functions | |
Fields () | |
Object constructor with fields being 0. | |
Fields (int left, int top, int right, int bottom) | |
Object constructor with all four fields defined (left, top, right and bottom). | |
bool | IsNull () const |
True if values of all fields are 0, otherwise, False. | |
int | GetLeft () const |
Returns value of left field. | |
void | SetLeft (int left) |
Sets left field to the left. | |
int | GetTop () const |
Returns value of top field. | |
void | SetTop (int top) |
Sets top field to the top. | |
int | GetRight () const |
Returns value of right field. | |
void | SetRight (int right) |
Sets right field to the right. | |
int | GetBottom () const |
Returns value of bottom field. | |
void | SetBottom (int bottom) |
Sets bottom field to the bottom. | |
Fields & | operator+= (const Fields &fields) |
Adds the value to the fields of the object from the specified object and returns reference to it. | |
Fields & | operator-= (const Fields &fields) |
Subtracts the value from the fields of the object and returns reference to it. | |
Fields & | operator+= (int) |
Adds the specified value to each field of the object and returns reference to it. | |
Fields & | operator-= (int) |
Subtracts the specified value from each field of the object and returns reference to it. | |
Fields & | operator*= (int) |
Multiplies the value of each object field by a factor and returns reference to it. | |
Fields & | operator/= (int) |
Divides the value of each object field by a divider and returns reference to it. | |
Fields & | operator*= (double) |
Multiplies the value of each object field by a factor and returns reference to it. | |
Fields & | operator/= (double) |
Divides the value of each object field by a divider and returns reference to it. | |
Fields class defines four rectangle fields.
Fields defines a set of four fields - left, top, right and bottom - that describe size of each rectangle border. IsNull() function returns True only if a value of each rectangle field is 0.