Clarisse 5.0 SP8 SDK  5.0.5.8.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | Static Public Member Functions | List of all members
GuiNodalNodeZoneImage Class Reference

Defines a Zone image, a node zone able to display an image. More...

Inheritance diagram for GuiNodalNodeZoneImage:
GuiNodalNodeZone GuiNodalNodeBase GuiNodalItem EventObject CoreCustomData CoreBaseObject CoreBaseType

Public Member Functions

 GuiNodalNodeZoneImage (GuiNodalNode &parent, int display_size=128, bool resizable=false)
 Constructor.
 
virtual void draw (GuiDc &dc) override
 
virtual void draw_select (GuiDc &dc) override
 
virtual void update_content (GuiDc &dc) override
 
void use_background (const bool &value)
 
void set_ratio (double ratio)
 
double get_ratio () const
 
GuiImageget_image () const
 
void set_image (GuiImage *img, bool stretchable=true, bool framed=false)
 
bool is_resizable ()
 
void set_outdated (bool out)
 
void get_client_area (int &x, int &y, int &width, int &height)
 
void set_size (double sz)
 
double get_size () const
 
bool is_resizing () const
 
- Public Member Functions inherited from GuiNodalNodeZone
 GuiNodalNodeZone (GuiNodalNodeBase &parent, const unsigned int &anchors=0, const int &width=40, const int &height=20)
 
GuiNodalNodeBaseget_parent_node () const
 
virtual int get_width () const override
 
virtual int get_height () const override
 
virtual void set_width (const int &w)
 
virtual void set_height (const int &h)
 
- Public Member Functions inherited from GuiNodalNodeBase
 GuiNodalNodeBase (GuiNodalNodeBase *parent, GuiNodal &graph, const int &x=0, const int &y=0, const unsigned int &active_anchors=NODE_ANCHOR_LEFT)
 Constructor.
 
 ~GuiNodalNodeBase () override
 Destructor.
 
GuiNodalNodeBaseget_parent () const
 
GuiNodalNodeget_parent_node () const
 Returns parent node.
 
void set_parent (GuiNodalNodeBase *parent)
 Sets parent node.
 
bool is_child_of (const GuiNodalNodeBase &node) const
 
virtual void _draw (GuiDc &dc)
 
virtual void _draw_select (GuiDc &dc)
 
virtual void draw_select_with_mmb (GuiDc &dc)
 
const int & get_computed_width () const
 
const int & get_computed_height () const
 
void set_computed_width (const int &width)
 
void set_computed_height (const int &height)
 
void set_local_pos (const GMathVec2i &pos)
 
void set_local_x (const int &x)
 
void set_local_y (const int &y)
 
const int & get_local_x () const
 
const int & get_local_y () const
 
const int & get_world_x () const
 
const int & get_world_y () const
 
const GMathVec2i & get_local_pos () const
 
const GMathVec2i & get_world_pos () const
 
virtual GMathVec2i get_position () const
 
virtual void set_position (const GMathVec2i &pos)
 
virtual void set_center (const GMathVec2i &pos)
 
virtual GMathVec2i get_center ()
 
virtual GMathVec2i get_displayed_center () const
 
virtual GMathVec2i get_unzoomed_offset () const
 
virtual void get_zoomed_offset (GMathVec2f &off) const
 When in omnidirectional layout, computes position offset needed to autozoom around node center.
 
int get_default_input_dx () const
 
virtual void get_bbox (GMathVec2i &tl, GMathVec2i &br) const
 
virtual int get_in_link_x () const
 
virtual int get_in_link_y () const
 
virtual int get_out_link_x () const
 
virtual int get_out_link_y () const
 
const int get_border_size () const
 
void set_border_size (const int &size)
 
const GMathVec3uc & get_border_color () const
 
void set_border_color (const GMathVec3uc &color)
 
void draw_round_rect (const GuiWidget::Roundness &roundness, const int &x, const int &y, const int &w, const int &h, const bool &filled=true)
 Draws a round rect.
 
void draw_thick_ring (double radius, double thickness)
 Draws a thick circle at current gl position, using current gl color.
 
void draw_thick_frame (int x, int y, int w, int h, double thickness, GuiWidget::Roundness roundness=GuiWidget::ROUNDNESS_NONE)
 Draws a thick round frame at current gl position, using current gl color.
 
virtual void draw_outline (int thickness)
 
GuiNodalNodeZoneAnchorget_anchor (const NodeAnchor &anchor)
 
GuiNodalNodeZoneAnchorget_anchor (unsigned int side) const
 
GuiNodalNodeZoneAnchorget_left_anchor () const
 
GuiNodalNodeZoneAnchorget_right_anchor () const
 
GuiNodalNodeZoneAnchorget_up_anchor () const
 
GuiNodalNodeZoneAnchorget_bottom_anchor () const
 
void set_anchor_disabled (bool disabled)
 
bool get_anchor_is_active (const NodeAnchor &anchor) const
 
void activate_anchor (const GuiNodalNodeBase::NodeAnchor &anchor)
 Activates incoming anchor.
 
void desactivate_anchor (const GuiNodalNodeBase::NodeAnchor &anchor)
 Desactivates incoming anchor.
 
void set_anchors_color (const GMathVec3uc &color)
 
void set_text_normal_color (const GMathVec3uc &color)
 
void set_text_selected_color (const GMathVec3uc &color)
 
void set_text_disabled_color (const GMathVec3uc &color)
 
const GMathVec3uc & get_text_normal_color () const
 
const GMathVec3uc & get_text_selected_color () const
 
const GMathVec3uc & get_text_highlight_color () const
 
const GMathVec3uc & get_text_disabled_color () const
 
const GMathVec3uc & get_text_color () const
 
virtual float get_custom_depth () const
 
unsigned int get_depth () const
 
virtual unsigned int set_depth (unsigned int d)
 
void set_is_highlighted (const bool &value) override
 
bool get_is_highlighted () const override
 
bool is_collapsed () const
 
void set_collapsed (const bool &value)
 
bool is_guest_input () const
 
void set_guest_input (bool value)
 
bool get_is_fading_in () const
 
bool get_is_fading_out () const
 
bool get_is_fading () const
 
bool get_is_selected () const
 
virtual void set_selected (bool selected)
 
bool get_is_preselected () const
 
virtual void set_is_preselected (const bool &value)
 
virtual void set_disabled (bool disabled)
 
bool get_is_disabled () const
 
virtual void set_ghost (bool ghost)
 
bool get_is_ghost () const
 
const float & get_scale () const
 
virtual void set_scale (const float &scale)
 
void set_draw_state (const ItemDrawState &state) override
 
virtual void move (const int &d_x, const int &d_y)
 Changes position by a delta.
 
virtual void move_to (const int &x, const int &y)
 Changes position.
 
const unsigned int & get_states () const
 
bool get_state_is_active (const GuiNodalNodeBase::NodeState &state) const
 
void activate_state (const GuiNodalNodeBase::NodeState &state)
 
void desactivate_state (const GuiNodalNodeBase::NodeState &state)
 
virtual void set_is_hidden (bool hidden, const bool &recursive=true)
 
bool get_is_hidden () const
 
void add_link (GuiNodalLink *link)
 
void remove_link (GuiNodalLink *link)
 
void set_screen_size (bool is_screen_size)
 
const bool & is_screen_size () const
 
virtual bool can_begin_link_creation ()
 
virtual bool can_begin_link_destruction (const GuiNodalLink &link)
 
const CoreVector
< GuiNodalNodeBase * > & 
get_children () const
 
void get_connexity (CoreVector< GuiNodalLink * > &links) const
 Fills a vector with all links connected to this node and to any of its children.
 
void get_connexity_from (CoreVector< GuiNodalLink * > &links) const
 gets the number of incoming links connected to this node and to any of its children
 
void get_connexity_to (CoreVector< GuiNodalLink * > &links) const
 gets the number of outgoing links connected to this node and to any of its children
 
const bool & get_propagate_highlight () const
 
void set_propagate_highlight (const bool &propagate)
 
void set_delta_out_link (const int &dx, const int &dy)
 
void set_delta_in_link (const int &dx, const int &dy)
 
const GMathVec2i & get_delta_out_link () const
 
- Public Member Functions inherited from GuiNodalItem
 GuiNodalItem (GuiNodal &graph)
 
const GMathVec3uc & get_select_color () const
 
void set_selectable ()
 
GuiNodalget_graph () const
 
void set_bg_normal_color (const GMathVec3uc &color)
 
void set_bg_highlight_color (const GMathVec3uc &color)
 
void set_bg_selected_color (const GMathVec3uc &color)
 
void set_bg_disabled_color (const GMathVec3uc &color)
 
void set_bg_colors (const GMathVec3uc &normal, const GMathVec3uc &highlight, const GMathVec3uc &selected)
 
const GMathVec3uc & get_bg_normal_color () const
 
const GMathVec3uc & get_bg_highlight_color () const
 
const GMathVec3uc & get_bg_disabled_color () const
 
const GMathVec3uc & get_bg_selected_color () const
 
const GMathVec3uc & get_bg_color () const
 
void set_bg_color (const GMathVec3uc &color)
 
virtual void set_is_culled (const bool &value)
 
bool get_is_culled () const
 
const ItemDrawState & get_draw_state ()
 
bool get_is_dirty () const
 
- Public Member Functions inherited from EventObject
 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.
 
- Public Member Functions inherited from CoreCustomData
 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
 
- Public Member Functions inherited from CoreBaseObject
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 CoreClassInfoget_class_info () const
 
template<class T >
T * cast ()
 
template<class T >
const T * cast () const
 
- Public Member Functions inherited from CoreBaseType
bool is_kindof (const CoreClassInfo &cinfo) const
 

Static Public Member Functions

static GuiImageget_background_image ()
 

Additional Inherited Members

- Public Types inherited from GuiNodalNodeBase
enum  NodeAnchor {
  NODE_ANCHOR_NONE = 0,
  NODE_ANCHOR_LEFT = 0x01,
  NODE_ANCHOR_RIGHT = 0x02,
  NODE_ANCHOR_UP = 0x04,
  NODE_ANCHOR_BOTTOM = 0x08,
  NODE_ANCHOR_SIDES = NODE_ANCHOR_LEFT|NODE_ANCHOR_RIGHT,
  NODE_ANCHOR_ALL = NODE_ANCHOR_LEFT|NODE_ANCHOR_RIGHT|NODE_ANCHOR_UP|NODE_ANCHOR_BOTTOM
}
 
enum  NodeState {
  NODE_STATE_SELECTED = 1,
  NODE_STATE_HIGHLIGHTED = 2,
  NODE_STATE_DISABLED = 4,
  NODE_STATE_FADING_IN = 8,
  NODE_STATE_FADING_IN_DELAYED = 16,
  NODE_STATE_FADING_OUT = 32,
  NODE_STATE_FADING_OUT_DELAYED = 64,
  NODE_STATE_SIMPLIFIED = 128,
  NODE_STATE_HIDDEN = 256,
  NODE_STATE_PRESELECTED = 512,
  NODE_STATE_MOVING = 1024,
  NODE_STATE_COLLAPSED = 2048,
  NODE_STATE_GHOST =4096,
  NODE_STATE_GUEST_IN =8192
}
 
- Protected Member Functions inherited from GuiNodalNodeBase
int get_links_count () const
 
GuiNodalLinkget_link (int pos) const
 
const CoreVector< GuiNodalLink * > & get_links () const
 
void remove_links ()
 
void dirty_links ()
 
virtual void remove_child (GuiNodalNodeBase &child)
 remove a child node
 
virtual void add_child (GuiNodalNodeBase &child)
 Adds a child node.
 
void compute_world_pos ()
 Computes world position and asks for children world position computation.
 
const bool & get_world_pos_is_dirty ()
 
void set_world_pos_is_dirty (const bool &value)
 
- Protected Attributes inherited from GuiNodalItem
ItemDrawState m_draw_state
 
- Static Protected Attributes inherited from GuiNodalNodeBase
static unsigned int m_ghost_alpha = 96
 
static unsigned int m_passthrough_alpha = 24
 

Detailed Description

Defines a Zone image, a node zone able to display an image.