C3D Toolkit
Kernel - 117982, Vision - 2.9.2.2
|
Fields class defines four rectangle fields. More...
#include <vsn_fields.h>
Public Member Functions | |
DoubleFields () | |
Object constructor with fields being 0. | |
DoubleFields (double left, double top, double right, double bottom) | |
Object constructor with all four fields defined(left, top, right and bottom). | |
DoubleFields (const Fields &fields) | |
Copy constructor. | |
DoubleFields & | operator+= (const DoubleFields &fields) |
Adds the value to the fields of the object from the specified object and returns reference to it. | |
DoubleFields & | operator-= (const DoubleFields &fields) |
Subtracts the value from the fields of the object and returns reference to it. | |
DoubleFields & | operator+= (double addend) |
Adds the specified value to each field of the object and returns reference to it. | |
DoubleFields & | operator-= (double subtrahend) |
Subtracts the specified value from each field of the object and returns reference to it. | |
DoubleFields & | operator*= (double factor) |
Multiplies the value of each object field by a factor and returns reference to it. | |
DoubleFields & | operator/= (double divisor) |
Divides the value of each object field by a divider and returns reference to it. | |
Fields | ToFields () const |
Converts the object to integer object and returns a new object. | |
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.