This class represents a point in 2D space using UnifiedDim's. More...
#include <unifieddim.h>
Collaboration diagram for Mezzanine::UI::UnifiedVec2:Public Member Functions | |
| UnifiedVec2 () | |
| Class constructor. | |
| UnifiedVec2 (const Real &x, const Real &y) | |
| Real constructor. More... | |
| UnifiedVec2 (const UnifiedDim &x, const UnifiedDim &y) | |
| UnifiedDim constructor. More... | |
| UnifiedVec2 (const Real &Xrel, const Real &Yrel, const Real &Xabs, const Real &Yabs) | |
| Real constructor. More... | |
| UnifiedVec2 (const UnifiedVec2 &Other) | |
| Copy constructor. More... | |
| ~UnifiedVec2 () | |
| Class destructor. | |
| Vector2 | CalculateActualDimensions (const Vector2 &Actual) const |
| Calculates the actual values when a Vector2 with actual dimensions has this unified vector2 applied to it. More... | |
| Boole | operator!= (const UnifiedVec2 &Other) const |
| Inequality comparison operator. More... | |
| UnifiedVec2 | operator* (const UnifiedVec2 &Other) const |
| Multiplication operator. More... | |
| UnifiedVec2 | operator* (const UnifiedDim &Other) const |
| Multiplication with UnifiedDim operator. More... | |
| UnifiedVec2 | operator* (const Real &Other) |
| Multiplication with Real operator. More... | |
| UnifiedVec2 & | operator*= (const UnifiedVec2 &Other) |
| Multiplication assignment operator. More... | |
| UnifiedVec2 & | operator*= (const UnifiedDim &Other) |
| Multiplication assignment with UnifiedDim operator. More... | |
| UnifiedVec2 & | operator*= (const Real &Other) |
| Multiplication assignment with Real operator. More... | |
| UnifiedVec2 | operator+ (const UnifiedVec2 &Other) const |
| Addition operator. More... | |
| UnifiedVec2 | operator+ (const UnifiedDim &Other) const |
| Addition with UnifiedDim operator. More... | |
| UnifiedVec2 & | operator+= (const UnifiedVec2 &Other) |
| Addition assignment operator. More... | |
| UnifiedVec2 & | operator+= (const UnifiedDim &Other) |
| Addition assignment with UnifiedDim operator. More... | |
| UnifiedVec2 | operator- (const UnifiedVec2 &Other) const |
| Subtraction operator. More... | |
| UnifiedVec2 | operator- (const UnifiedDim &Other) const |
| Subtraction with UnifiedDim operator. More... | |
| UnifiedVec2 & | operator-= (const UnifiedVec2 &Other) |
| Subtraction assignment operator. More... | |
| UnifiedVec2 & | operator-= (const UnifiedDim &Other) |
| Subtraction assignment with UnifiedDim operator. More... | |
| UnifiedVec2 | operator/ (const UnifiedVec2 &Other) const |
| Division operator. More... | |
| UnifiedVec2 | operator/ (const UnifiedDim &Other) const |
| Division with UnifiedDim operator. More... | |
| UnifiedVec2 | operator/ (const Real &Other) |
| Division with Real operator. More... | |
| UnifiedVec2 & | operator/= (const UnifiedVec2 &Other) |
| Division assignment operator. More... | |
| UnifiedVec2 & | operator/= (const UnifiedDim &Other) |
| Division assignment with UnifiedDim operator. More... | |
| UnifiedVec2 & | operator/= (const Real &Other) |
| Division assignment with Real operator. More... | |
| UnifiedVec2 & | operator= (const UnifiedVec2 &Other) |
| Assignment operator. More... | |
| Boole | operator== (const UnifiedVec2 &Other) const |
| Equality comparison operator. More... | |
| void | ProtoDeSerialize (const XML::Node &SelfRoot) |
| Take the data stored in an XML Node and overwrite this object with it. More... | |
| void | ProtoSerialize (XML::Node &ParentNode) const |
| Convert this class to an XML::Node ready for serialization. More... | |
| void | SetIdentity () |
| Sets all members of this unified vector to zero. | |
| void | SetValues (const UnifiedDim &x, const UnifiedDim &y) |
| Sets all data members of this unified vector explicitly. More... | |
| void | SetValues (const Real &Xrel, const Real &Yrel, const Real &Xabs, const Real &Yabs) |
| Sets all data members of this unified vector explicitly. More... | |
Static Public Member Functions | |
| static String | GetSerializableName () |
| Get the name of the the XML tag the Renderable class will leave behind as its instances are serialized. More... | |
Public Attributes | |
| UnifiedDim | X |
| The dimension on the X plane. | |
| UnifiedDim | Y |
| The dimension on the Y plane. | |
This class represents a point in 2D space using UnifiedDim's.
Definition at line 306 of file unifieddim.h.
Real constructor.
| x | The dimension on the X plane. |
| y | The dimension on the Y plane. |
Definition at line 329 of file unifieddim.h.
|
inline |
UnifiedDim constructor.
| x | The dimension on the X plane. |
| y | The dimension on the Y plane. |
Definition at line 334 of file unifieddim.h.
|
inline |
Real constructor.
| Xrel | The relative portion of the X dimension. |
| Yrel | The relative portion of the Y dimension. |
| Xabs | The absolute portion of the X dimension. |
| Yabs | the absolute portion of the Y dimension. |
Definition at line 341 of file unifieddim.h.
|
inline |
Copy constructor.
| Other | The other UnifiedVec2 to copy from. |
Definition at line 348 of file unifieddim.h.
|
inline |
Calculates the actual values when a Vector2 with actual dimensions has this unified vector2 applied to it.
| Actual | A Vector2 containing the actual(pixel) dimensions to use as a base for the calculation. |
Definition at line 384 of file unifieddim.h.
|
inlinestatic |
Get the name of the the XML tag the Renderable class will leave behind as its instances are serialized.
Definition at line 649 of file unifieddim.h.
|
inline |
Inequality comparison operator.
| Other | The other UnifiedVec2 to compare to. |
Definition at line 580 of file unifieddim.h.
|
inline |
Multiplication operator.
| Other | The other UnifiedVec2 to multiply by. |
Definition at line 410 of file unifieddim.h.
|
inline |
Multiplication with UnifiedDim operator.
| Other | The other UnifiedDim to multiply by. |
Definition at line 480 of file unifieddim.h.
|
inline |
Multiplication with Real operator.
| Other | The Real to multiply by. |
Definition at line 536 of file unifieddim.h.
|
inline |
Multiplication assignment operator.
| Other | The other UnifiedVec2 to multiply by. |
Definition at line 444 of file unifieddim.h.
|
inline |
Multiplication assignment with UnifiedDim operator.
| Other | The other UnifiedDim to multiply by. |
Definition at line 514 of file unifieddim.h.
|
inline |
Multiplication assignment with Real operator.
| Other | The Real to multiply by. |
Definition at line 551 of file unifieddim.h.
|
inline |
Addition operator.
| Other | The other UnifiedVec2 to add to this. |
Definition at line 396 of file unifieddim.h.
|
inline |
Addition with UnifiedDim operator.
| Other | The other UnifiedDim to add to this. |
Definition at line 466 of file unifieddim.h.
|
inline |
Addition assignment operator.
| Other | The other UnifiedVec2 to add to this. |
Definition at line 426 of file unifieddim.h.
|
inline |
Addition assignment with UnifiedDim operator.
| Other | The other UnifiedDim to add to this. |
Definition at line 496 of file unifieddim.h.
|
inline |
Subtraction operator.
| Other | The other UnifiedVec2 to subtract from this. |
Definition at line 403 of file unifieddim.h.
|
inline |
Subtraction with UnifiedDim operator.
| Other | The other UnifiedDim to subtract from this. |
Definition at line 473 of file unifieddim.h.
|
inline |
Subtraction assignment operator.
| Other | The other UnifiedVec2 to subtract from this. |
Definition at line 435 of file unifieddim.h.
|
inline |
Subtraction assignment with UnifiedDim operator.
| Other | The other UnifiedDim to subtract from this. |
Definition at line 505 of file unifieddim.h.
|
inline |
Division operator.
| Other | The other UnifiedVec2 to divide by. |
Definition at line 417 of file unifieddim.h.
|
inline |
Division with UnifiedDim operator.
| Other | The other UnifiedDim to divide by. |
Definition at line 487 of file unifieddim.h.
|
inline |
Division with Real operator.
| Other | The Real to divide by. |
Definition at line 543 of file unifieddim.h.
|
inline |
Division assignment operator.
| Other | The other UnifiedVec2 to divide by. |
Definition at line 453 of file unifieddim.h.
|
inline |
Division assignment with UnifiedDim operator.
| Other | The other UnifiedDim to divide by. |
Definition at line 523 of file unifieddim.h.
|
inline |
Division assignment with Real operator.
| Other | The Real to divide by. |
Definition at line 560 of file unifieddim.h.
|
inline |
Assignment operator.
| Other | The other UnifiedVec2 to be assign values from. |
Definition at line 591 of file unifieddim.h.
|
inline |
Equality comparison operator.
| Other | The other UnifiedVec2 to compare to. |
Definition at line 573 of file unifieddim.h.
|
inline |
Take the data stored in an XML Node and overwrite this object with it.
| SelfRoot | An XML::Node containing the data to populate this class with. |
Definition at line 620 of file unifieddim.h.
|
inline |
Convert this class to an XML::Node ready for serialization.
| ParentNode | The point in the XML hierarchy that all this renderable should be appended to. |
Definition at line 603 of file unifieddim.h.
|
inline |
Sets all data members of this unified vector explicitly.
| x | The dimension on the X plane. |
| y | The dimension on the Y plane. |
Definition at line 359 of file unifieddim.h.
|
inline |
Sets all data members of this unified vector explicitly.
| Xrel | The relative portion of the X dimension. |
| Yrel | The relative portion of the Y dimension. |
| Xabs | The absolute portion of the X dimension. |
| Yabs | the absolute portion of the Y dimension. |
Definition at line 369 of file unifieddim.h.
1.8.9.1. Thanks to the
Open Icon Library
for help with some of the icons.