Clarisse 5.0 SP8 SDK
5.0.5.8.0
|
Represents a point in a GuiGraphCurve. More...
Public Types | |
enum | RenderMode { RENDER_MODE_NORMAL, RENDER_MODE_HIGHLIGHTED } |
![]() | |
enum | GraphItemState { GRAPH_ITEM_STATE_SELECTED = 1, GRAPH_ITEM_STATE_HIGHLIGHTED = 2, GRAPH_ITEM_STATE_DISABLED = 4, GRAPH_ITEM_STATE_PRESELECTED = 8, GRAPH_ITEM_STATE_MOVING = 16, GRAPH_ITEM_STATE_HIDDEN = 32 } |
![]() | |
typedef void(* | EventInfoFunction )(EventObject &, const EventInfo &, void *) |
event callback signature for free functions / static methods. | |
typedef void(EventObject::* | EventInfoMethod )(EventObject &, const EventInfo &, void *) |
event callback signature for methods. | |
typedef void(* | EventFunction )(EventObject &, const CoreString &, void *) |
typedef void(EventObject::* | EventMethod )(EventObject &, const CoreString &, void *) |
Public Member Functions | |
GuiGraphPoint (GuiGraphCurve &curve, const double &x, const double &y, const GMathVec3uc &normal_color, const GMathVec3uc &highlight_color) | |
Constructor. | |
virtual | ~GuiGraphPoint () override |
Destructor. | |
void | draw (GuiDc &dc) override |
void | draw_select (GuiDc &dc) override |
void | set_render_mode (const RenderMode &mode) |
const RenderMode & | get_render_mode () |
const GMathVec2d & | get_position () const |
const double & | get_x () const |
const double & | get_y () const |
void | set_position (const GMathVec2d &pos) |
void | set_position (const double &x, const double &y) |
void | set_x (const double &x) |
void | set_y (const double &y) |
const GMathVec2d & | get_graph_position () const |
const double & | get_graph_x () const |
const double & | get_graph_y () const |
void | set_graph_position (const GMathVec2d &pos) |
void | set_graph_position (const double &x, const double &y) |
void | set_graph_x (const double &x) |
void | set_graph_y (const double &y) |
GuiGraphCurve & | get_curve () const |
GuiGraphTangent * | get_tangent1 () const |
GuiGraphTangent * | get_tangent2 () const |
void | update_tangent1 (const GMathVec2d &pos) |
void | update_tangent2 (const GMathVec2d &pos) |
void | update_tangent1 (const double &x, const double &y) |
Updates tangent1 coordinates. Creates tangent if needed. | |
void | update_tangent2 (const double &x, const double &y) |
Updates tangent2 coordinates. Creates tangent if needed. | |
void | hide_tangent1 () |
Hides tangent1. | |
void | hide_tangent2 () |
Hides tangent2. | |
void | show_tangent1 () |
Shows tangent1. | |
void | show_tangent2 () |
Shows tangent2. | |
void | set_point_draw_size (const float &size) |
![]() | |
GuiGraphItem (const GuiGraphItem &source_item) | |
Copy Constructor. | |
GuiGraphItem (GuiGraphWidget &graph, const GMathVec3uc &normal_color, const GMathVec3uc &highlight_color) | |
Constructor. | |
virtual | ~GuiGraphItem () override |
Destructor. | |
virtual void | draw_highlight (GuiDc &dc) |
const GMathVec3uc & | get_normal_color () const |
const GMathVec3uc & | get_highlight_color () const |
const GMathVec3uc & | get_select_color () const |
const GMathVec3uc & | get_color () const |
Gets the item current color depending on its state. | |
void | set_normal_color (const GMathVec3uc &color) |
void | set_highlight_color (const GMathVec3uc &color) |
void | set_select_color (const GMathVec3uc &color) |
GuiGraphWidget & | get_graph () const |
bool | is_selectable () const |
Returns whether this graph item is selectable in the graph. | |
void | set_selectable (bool selectable=true) |
Make this graph item selectable in the graph. | |
bool | get_state_is_active (const GraphItemState &state) const |
bool | get_is_selected () const |
bool | get_is_highlighted () const |
bool | get_is_hidden () const |
void | hide () |
void | show () |
void | set_is_highlighted (const bool &value) |
void | set_is_selected (const bool &value) |
![]() | |
EventObject () | |
Constructor. | |
EventObject (const EventObject &src) | |
Copy Constructor. | |
virtual | ~EventObject () override |
Destructor. | |
void | connect (EventObject &sender, const CoreString &event_id, EventInfoMethod event_cb, void *data=0) |
Connects this to an object to listen to a specific event. | |
void | connect (EventObject &sender, EventInfoMethod event_cb, void *data=0) |
Connects this to an object to listen any of its events. | |
bool | disconnect (EventObject &sender, const CoreString &event_id, EventInfoMethod event_cb, void *data=0) |
bool | disconnect_all (EventObject &sender) |
Disconnects from all objects sender was listening on. | |
void | disconnect_all () |
Disconnects from all objects we were listening on. | |
void | remove_all_connection () |
Disconnects object from other objects it is listening to, and also disconnects all objects listening to it. | |
void | raise_event (const CoreString &event_id) const |
sends an event | |
void | raise_event (const EventInfo &event_info) const |
sends an event | |
bool | is_connected (EventObject &sender, const CoreString &event_id, void *data) |
void | set_mute (const bool &mute) |
Asks for object muting. This will increase or decrease the muting counter. Unmuting may not be immediat since it will happen only when counter reaches 0. | |
bool | is_mute () const |
Returns if object is muted. | |
CoreArray< EventObject * > | get_senders () const |
unsigned int | get_sender_count () const |
unsigned int | get_receiver_count () const |
virtual size_t | get_memory_size () const override |
void | connect (EventObject &sender, const CoreString &event_id, EventMethod event_cb, void *data=0) |
Connects this to an object to listen to a specific event. | |
void | connect (EventObject &sender, EventMethod event_cb, void *data=0) |
Connects this to an object to listen any of its events. | |
bool | disconnect (EventObject &sender, const CoreString &event_id, EventMethod event_cb, void *data=0) |
Disconnects this from an object for a specific event. | |
![]() | |
CoreCustomData (const CoreCustomData &src) | |
void | add_custom_data (void *key, const bool &data) |
void | add_custom_data (void *key, const int &data) |
void | add_custom_data (void *key, const unsigned int &data) |
void | add_custom_data (void *key, const char *data) |
void | add_custom_data (void *key, const CoreString &data) |
void | add_custom_data (void *key, const double &data) |
void | add_custom_data (void *key, void *data) |
void | remove_custom_data (void *key) |
void | remove_all_custom_data () |
void | set_custom_data (void *key, const bool &data) |
void | set_custom_data (void *key, const int &data) |
void | set_custom_data (void *key, const unsigned int &data) |
void | set_custom_data (void *key, const double &data) |
void | set_custom_data (void *key, const char *data) |
void | set_custom_data (void *key, const CoreString &data) |
void | set_custom_data (void *key, void *data) |
void | get_custom_data (void *key, bool &data) const |
void | get_custom_data (void *key, int &data) const |
void | get_custom_data (void *key, unsigned int &data) const |
void | get_custom_data (void *key, double &data) const |
void | get_custom_data (void *key, CoreString &data) const |
void | get_custom_data (void *key, void *&data) const |
![]() | |
bool | is_kindof (const CoreBaseObject &object) const |
CoreString | get_class_info_name () const |
const unsigned long & | get_class_info_id () const |
virtual bool | is_kindof (const CoreClassInfo &cinfo) const |
virtual const CoreClassInfo & | get_class_info () const |
template<class T > | |
T * | cast () |
template<class T > | |
const T * | cast () const |
![]() | |
bool | is_kindof (const CoreClassInfo &cinfo) const |
Additional Inherited Members | |
![]() | |
static CoreString | get_graph_item_state_name (const GraphItemState &state) |
![]() | |
const GMathVec3uc & | get_draw_select_color () const |
const unsigned int & | get_states () const |
Represents a point in a GuiGraphCurve.
void GuiGraphPoint::update_tangent1 | ( | const double & | x, |
const double & | y | ||
) |
Updates tangent1 coordinates. Creates tangent if needed.
[in] | x | coordinate relative to the GuiGraphPoint it referes to |
[in] | y | coordinate relative to the GuiGraphPoint it referes to |
void GuiGraphPoint::update_tangent2 | ( | const double & | x, |
const double & | y | ||
) |
Updates tangent2 coordinates. Creates tangent if needed.
[in] | x | coordinate relative to the GuiGraphPoint it referes to |
[in] | y | coordinate relative to the GuiGraphPoint it referes to |