diff options
Diffstat (limited to 'src/entityproperties.h')
| -rw-r--r-- | src/entityproperties.h | 51 | 
1 files changed, 51 insertions, 0 deletions
diff --git a/src/entityproperties.h b/src/entityproperties.h index b80a82e..9a276cb 100644 --- a/src/entityproperties.h +++ b/src/entityproperties.h @@ -44,6 +44,20 @@ public:  	}  	/** +	 * @brief returns the angles of this object +	 * */ +	inline const Vector3f &angles() const { +		return properties_angles; +	} +	 +	/** +	 * @brief returns the yaw angle of this object +	 * */ +	inline const float yaw() const { +		return properties_angles[0]; +	}	 +	 +	/**  	 * @brief returns the subsections string of this object  	 * */  	inline const QString & subsections() const { @@ -83,11 +97,48 @@ public:  		properties_radius = radius;  	} +	/** +	 * @brief set the object angles +	 * */ +	inline void set_angles(const Vector3f &angles) { +		properties_angles.assign(angles); +	} +	 +	/** +	 * @brief set the object yaw angle +	 * */ +	inline void set_yaw(const float yaw) { +		properties_angles[0] = yaw; +	} + +	/** +	 * @brief set the object pitch angle +	 * */ +	inline void set_pitch(const float pitch) { +		properties_angles[1] = pitch; +	} +	 +	/** +	 * @brief set the object roll angle +	 * */ +	inline void set_roll (const float roll ) { +		properties_angles[2] = roll ; +	} +	 +	/** +	 * @brief set the object angles +	 * */ +	inline void set_angles(const float yaw, const float pitch, const float roll) { +		properties_angles.assign(yaw, pitch, roll); +	} +	  private:  	float			properties_radius;  	QString			properties_subsections;  	QString			properties_type; +	 +	Vector3f		properties_angles;  };  } // namespace editor  | 
