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.
 
QRectF getBoundingBox ()
 Retrieve boundingbox of the node.
 
std::vector< TreeNodePtr > getChildren () const
 
QSize getSize ()
 Retrieve size of the node.
 
QSize getSubTreeSize ()
 Retrieve size of the complete subtree where the current node is root.
 
 TreeNode (QGraphicsScene *scene, QSize nodeSize=TreeNode::DefaultNodeSize)
 Constructs a tree node as part of a Qt visualizable tree.
 
void update (QPointF positionLeftTop=QPointF(0, 0))
 Updates the layout of the tree.
 
- 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.
 
MessageTypeT getEffectiveLoggingLevel () const
 
 Logging ()
 
void setLocalMinimumLoggingLevel (MessageTypeT level)
 With setLocalMinimumLoggingLevel the minimum verbosity-level of log-messages can be set.
 
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.
 
void drawNode (QRectF boundingBox) override
 Draws the node.
 
void timerEventRun ()
 
- Protected Member Functions inherited from TreeNode
void setSize (QSize nodeSize)
 Sets size of node.
 
- Protected Member Functions inherited from Logging
bool checkLogLevel (MessageTypeT level) const
 
const LogSenderPtr & getLogSender () const
 Retrieve log sender.
 
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
 

Member Enumeration Documentation

◆ CheckTableColumns

Enumerator
eDataFieldCol 
eCheckTypeCol 
eParametersCol 
eStateCol 
eCurrentValueCol 

Constructor & Destructor Documentation

◆ TermNode()

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

◆ ~TermNode()

~TermNode ( )
override

Member Function Documentation

◆ checksTableSelectionChanged

void checksTableSelectionChanged ( )
slot

◆ 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.

◆ 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.

◆ getDatafieldValue()

QString getDatafieldValue ( )

◆ getImpl()

TermImplPtr getImpl ( )
inline

◆ graphicsItemClicked

void graphicsItemClicked ( )
slot

◆ literalClicked

void literalClicked ( int )
signal

◆ newLiteralValue

void newLiteralValue ( bool truthy)
signal

◆ newValueString

void newValueString ( QString newValue)
signal

◆ setTermEvaluationState [1/2]

void setTermEvaluationState ( bool truthy)
slot

◆ setTermEvaluationState() [2/2]

void setTermEvaluationState ( TermImplPtr term)

◆ timerEventRun()

void timerEventRun ( )
protected

◆ updateValueString

void updateValueString ( const QString & valueString)
slot

Friends And Related Symbol Documentation

◆ ConditionViewerWidget

friend class ConditionViewerWidget
friend

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