11 #include "GDCore/Project/VariablesContainer.h"
12 #include "GDCore/String.h"
14 class PropertyDescriptor;
17 class ObjectsContainer;
59 double GetX()
const {
return x; }
64 void SetX(
double x_) { x = x_; }
69 double GetY()
const {
return y; }
74 void SetY(
double y_) { y = y_; }
79 double GetZ()
const {
return z; }
84 void SetZ(
double z_) { z = z_; }
94 void SetAngle(
double angle_) { angle = angle_; }
212 customDepth = hasCustomDepth_;
215 double GetCustomWidth()
const {
return width; }
216 void SetCustomWidth(
double width_) { width = width_; }
217 double GetCustomHeight()
const {
return height; }
218 void SetCustomHeight(
double height_) { height = height_; }
219 double GetCustomDepth()
const {
return depth; }
220 void SetCustomDepth(
double depth_) { depth = depth_; }
272 return initialVariables;
306 std::map<gd::String, gd::PropertyDescriptor> GetCustomProperties(
315 bool UpdateCustomProperty(
const gd::String& name,
327 double GetRawDoubleProperty(
const gd::String& name)
const;
341 void SetRawDoubleProperty(
const gd::String& name,
double value);
373 std::map<gd::String, double>
375 std::map<gd::String, gd::String>
Represents an instance of an object to be created on a layout start up.
Definition: InitialInstance.h:26
double GetRotationY() const
Get the rotation of the instance on Y axis, in radians.
Definition: InitialInstance.h:109
double GetRotationX() const
Get the rotation of the instance on X axis, in radians.
Definition: InitialInstance.h:99
void SetY(double y_)
Set the Y position of the instance.
Definition: InitialInstance.h:74
bool ShouldKeepRatio() const
Return true if the dimensions (width, height and depth) should keep the same ratio.
Definition: InitialInstance.h:253
void SetAngle(double angle_)
Set the rotation of the instance on Z axis, in radians.
Definition: InitialInstance.h:94
void SetX(double x_)
Set the X position of the instance.
Definition: InitialInstance.h:64
gd::VariablesContainer & GetVariables()
Definition: InitialInstance.h:279
double GetZ() const
Get the Z position of the instance.
Definition: InitialInstance.h:79
bool IsFlippedX() const
Return true if the instance is flipped on X axis.
Definition: InitialInstance.h:139
void SetRotationY(double rotationY_)
Set the rotation of the instance on Y axis, in radians.
Definition: InitialInstance.h:114
bool IsLocked() const
Return true if the instance is locked and cannot be moved in the IDE.
Definition: InitialInstance.h:226
void SetFlippedY(bool flippedY_)
Set whether the instance is flipped on Y axis.
Definition: InitialInstance.h:154
bool HasCustomDepth() const
Return true if the instance has a depth which is different from its object default depth....
Definition: InitialInstance.h:191
const gd::String & GetLayer() const
Get the layer the instance belongs to.
Definition: InitialInstance.h:169
void SetFlippedZ(bool flippedZ_)
Set whether the instance is flipped on Z axis.
Definition: InitialInstance.h:164
void SetHasCustomSize(bool hasCustomSize_)
Set whether the instance has a width/height which is different from its object default width/height o...
Definition: InitialInstance.h:200
void SetObjectName(const gd::String &name)
Set the name of object instantiated on the layout.
Definition: InitialInstance.h:54
const gd::String & GetObjectName() const
Get the name of object instantiated on the layout.
Definition: InitialInstance.h:49
void SetZOrder(int zOrder_)
Set the Z order of the instance (for a 2D object).
Definition: InitialInstance.h:124
double GetY() const
Get the Y position of the instance.
Definition: InitialInstance.h:69
void SetOpacity(int opacity_)
Set the opacity of the instance.
Definition: InitialInstance.h:134
void SetRotationX(double rotationX_)
Set the rotation of the instance on X axis, in radians.
Definition: InitialInstance.h:104
void SetShouldKeepRatio(bool enable=true)
Define if instance's dimensions should keep the same ratio.
Definition: InitialInstance.h:258
void SetZ(double z_)
Set the Z position of the instance.
Definition: InitialInstance.h:84
void SetFlippedX(bool flippedX_)
Set whether the instance is flipped on X axis.
Definition: InitialInstance.h:144
bool IsSealed() const
Return true if the instance cannot be selected by clicking on it in the IDE (only applies if instance...
Definition: InitialInstance.h:239
void SetLayer(const gd::String &layer_)
Set the layer the instance belongs to.
Definition: InitialInstance.h:174
int GetOpacity() const
Get Opacity.
Definition: InitialInstance.h:129
double GetAngle() const
Get the rotation of the instance on Z axis, in radians.
Definition: InitialInstance.h:89
bool IsFlippedZ() const
Return true if the instance is flipped on Z axis.
Definition: InitialInstance.h:159
InitialInstance * Clone() const
Definition: InitialInstance.h:39
bool IsFlippedY() const
Return true if the instance is flipped on Y axis.
Definition: InitialInstance.h:149
bool HasCustomSize() const
Return true if the instance has a width/height which is different from its object default width/heigh...
Definition: InitialInstance.h:183
int GetZOrder() const
Get the Z order of the instance (for a 2D object).
Definition: InitialInstance.h:119
double GetX() const
Get the X position of the instance.
Definition: InitialInstance.h:59
void SetLocked(bool enable=true)
(Un)lock the initial instance.
Definition: InitialInstance.h:233
void SetHasCustomDepth(bool hasCustomDepth_)
Set whether the instance has a depth which is different from its object default depth or not....
Definition: InitialInstance.h:211
void SetSealed(bool enable=true)
(Un)seal the initial instance.
Definition: InitialInstance.h:247
const gd::VariablesContainer & GetVariables() const
Definition: InitialInstance.h:271
Used as a base class for classes that will own objects (see gd::Object).
Definition: ObjectsContainer.h:37
A generic container that can represent a value ( containing a string, double, bool or int),...
Definition: SerializerElement.h:37
String represents an UTF8 encoded string.
Definition: String.h:33
Class defining a container for gd::Variable.
Definition: VariablesContainer.h:28
Definition: CommonTools.h:24