TermNode Class Reference

#include <ArmarXGui/gui-plugins/ConditionViewerPlugin/TermNode.h>

+ Inheritance diagram for TermNode:

Public Types

enum  CheckTableColumns {
  eDataFieldCol, eCheckTypeCol, eParametersCol, eStateCol,
  eCurrentValueCol
}
 

Public Slots

void checksTableSelectionChanged ()
 
void graphicsItemClicked ()
 
void setTermEvaluationState (bool truthy)
 
void updateValueString (const QString &valueString)
 

Signals

void literalClicked (int)
 
void newLiteralValue (bool truthy)
 
void newValueString (QString newValue)
 

Public Member Functions

QString getDatafieldValue ()
 
TermImplPtr getImpl ()
 
void setTermEvaluationState (TermImplPtr term)
 
 TermNode (TermTreeGraphicsScene *scene, QTableWidget *checksTable, TermImplPtr term, int conditionId, IceManagerPtr manager, ConditionHandlerInterfacePrx handler)
 
 ~TermNode () override
 
- Public Member Functions inherited from TreeNode
void addChild (TreeNodePtr child)
 Adds a child to the node in the tree structure. More...
 
QRectF getBoundingBox ()
 Retrieve boundingbox of the node. More...
 
std::vector< TreeNodePtrgetChildren () const
 
QSize getSize ()
 Retrieve size of the node. More...
 
QSize getSubTreeSize ()
 Retrieve size of the complete subtree where the current node is root. More...
 
 TreeNode (QGraphicsScene *scene, QSize nodeSize=TreeNode::DefaultNodeSize)
 Constructs a tree node as part of a Qt visualizable tree. More...
 
void update (QPointF positionLeftTop=QPointF(0, 0))
 Updates the layout of the tree. More...
 
- Public Member Functions inherited from Logging
SpamFilterDataPtr deactivateSpam (float deactivationDurationSec=10.0f, const std::string &identifier="", bool deactivate=true) const
 disables the logging for the current line for the given amount of seconds. More...
 
MessageTypeT getEffectiveLoggingLevel () const
 
 Logging ()
 
void setLocalMinimumLoggingLevel (MessageTypeT level)
 With setLocalMinimumLoggingLevel the minimum verbosity-level of log-messages can be set. More...
 
void setTag (const LogTag &tag)
 
void setTag (const std::string &tagName)
 
virtual ~Logging ()
 

Protected Member Functions

void drawEdge (QLineF line) override
 Draws an edge to this node. More...
 
void drawNode (QRectF boundingBox) override
 Draws the node. More...
 
void timerEventRun ()
 
- Protected Member Functions inherited from TreeNode
void setSize (QSize nodeSize)
 Sets size of node. More...
 
- Protected Member Functions inherited from Logging
bool checkLogLevel (MessageTypeT level) const
 
const LogSenderPtrgetLogSender () const
 Retrieve log sender. More...
 
LogSenderPtr loghelper (const char *file, int line, const char *function) const
 

Friends

class ConditionViewerWidget
 

Additional Inherited Members

- Static Public Attributes inherited from TreeNode
static const QSize DefaultNodeHorizontalSeparator
 
static const QSize DefaultNodeSize
 
static const QSize DefaultNodeVerticalSeparator
 
- Protected Attributes inherited from Logging
MessageTypeT minimumLoggingLevel
 
SpamFilterDataPtr spamFilter
 
LogTag tag
 

Detailed Description

Definition at line 47 of file TermNode.h.

Member Enumeration Documentation

◆ CheckTableColumns

Enumerator
eDataFieldCol 
eCheckTypeCol 
eParametersCol 
eStateCol 
eCurrentValueCol 

Definition at line 58 of file TermNode.h.

Constructor & Destructor Documentation

◆ TermNode()

TermNode ( TermTreeGraphicsScene scene,
QTableWidget *  checksTable,
TermImplPtr  term,
int  conditionId,
IceManagerPtr  manager,
ConditionHandlerInterfacePrx  handler 
)

Definition at line 37 of file TermNode.cpp.

+ Here is the call graph for this function:

◆ ~TermNode()

~TermNode ( )
override

Definition at line 111 of file TermNode.cpp.

Member Function Documentation

◆ checksTableSelectionChanged

void checksTableSelectionChanged ( )
slot

Definition at line 267 of file TermNode.cpp.

+ Here is the call graph for this function:

◆ drawEdge()

void drawEdge ( QLineF  line)
overrideprotectedvirtual

Draws an edge to this node.

Overwrite this in order provide your own visualization.

Parameters
lineline from parent to this node

Reimplemented from TreeNode.

Definition at line 121 of file TermNode.cpp.

+ Here is the call graph for this function:

◆ drawNode()

void drawNode ( QRectF  boundingBox)
overrideprotectedvirtual

Draws the node.

Overwrite this in order provide your own visualization.

Parameters
boundingBoxof the node to be drawn

Reimplemented from TreeNode.

Definition at line 115 of file TermNode.cpp.

+ Here is the call graph for this function:

◆ getDatafieldValue()

QString getDatafieldValue ( )

Definition at line 126 of file TermNode.cpp.

+ Here is the caller graph for this function:

◆ getImpl()

TermImplPtr getImpl ( )
inline

Definition at line 70 of file TermNode.h.

◆ graphicsItemClicked

void graphicsItemClicked ( )
slot

Definition at line 259 of file TermNode.cpp.

◆ literalClicked

void literalClicked ( int  )
signal
+ Here is the caller graph for this function:

◆ newLiteralValue

void newLiteralValue ( bool  truthy)
signal
+ Here is the caller graph for this function:

◆ newValueString

void newValueString ( QString  newValue)
signal
+ Here is the caller graph for this function:

◆ setTermEvaluationState [1/2]

void setTermEvaluationState ( bool  truthy)
slot

Definition at line 150 of file TermNode.cpp.

+ Here is the call graph for this function:

◆ setTermEvaluationState() [2/2]

void setTermEvaluationState ( TermImplPtr  term)

Definition at line 145 of file TermNode.cpp.

+ Here is the caller graph for this function:

◆ timerEventRun()

void timerEventRun ( )
protected

Definition at line 244 of file TermNode.cpp.

+ Here is the call graph for this function:

◆ updateValueString

void updateValueString ( const QString &  valueString)
slot

Definition at line 286 of file TermNode.cpp.

+ Here is the caller graph for this function:

Friends And Related Function Documentation

◆ ConditionViewerWidget

friend class ConditionViewerWidget
friend

Definition at line 112 of file TermNode.h.


The documentation for this class was generated from the following files: