TinkerCell Core 1.0
TinkerCell's Core library providing all basic functionalities
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes
Tinkercell::ToolGraphicsItem Class Reference

tools that are drawn on the scene instead of displayed as a window More...

#include <Tool.h>

Collaboration diagram for Tinkercell::ToolGraphicsItem:
Collaboration graph
[legend]

List of all members.

Public Types

enum  { Type = UserType + 9 }
 for enabling dynamic_cast More...

Public Member Functions

 ToolGraphicsItem (Tool *)
 constructor must have an associated Tool
virtual void select ()
 this item has been selected
virtual void deselect ()
 this item has been deselected
int type () const
 for enabling dynamic_cast
virtual void visible (bool)
 show or hide this graphical tool. The graphical tool may choose whether or not to be visible based on other factors.

Static Public Member Functions

static ToolGraphicsItemcast (QGraphicsItem *)
 cast a graphics item to a ToolGraphicsItem

Public Attributes

Tooltool
 main window for this tool

Detailed Description

tools that are drawn on the scene instead of displayed as a window

Definition at line 146 of file Tool.h.


Member Enumeration Documentation

anonymous enum

for enabling dynamic_cast

Enumerator:
Type 

Definition at line 159 of file Tool.h.


Constructor & Destructor Documentation

Tinkercell::ToolGraphicsItem::ToolGraphicsItem ( Tool t)

constructor must have an associated Tool

Definition at line 22 of file Tool.cpp.


Member Function Documentation

ToolGraphicsItem * Tinkercell::ToolGraphicsItem::cast ( QGraphicsItem *  q) [static]

cast a graphics item to a ToolGraphicsItem

Returns:
ToolGraphicsItem* can be 0 if invalid cast

Definition at line 149 of file Tool.cpp.

Here is the caller graph for this function:

void Tinkercell::ToolGraphicsItem::deselect ( ) [virtual]

this item has been deselected

Definition at line 36 of file Tool.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void Tinkercell::ToolGraphicsItem::select ( ) [virtual]

this item has been selected

Definition at line 26 of file Tool.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

int Tinkercell::ToolGraphicsItem::type ( ) const [inline]

for enabling dynamic_cast

Definition at line 161 of file Tool.h.

void Tinkercell::ToolGraphicsItem::visible ( bool  b) [virtual]

show or hide this graphical tool. The graphical tool may choose whether or not to be visible based on other factors.

Definition at line 106 of file Tool.cpp.

Here is the caller graph for this function:


Member Data Documentation

main window for this tool

Definition at line 157 of file Tool.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines