PEBL 2.2
Psychology Experiment Building Language - Cross-platform psychological experiment development system
VCGNode Class Reference

#include <VCG.h>

Public Member Functions

 VCGNode ()
 Standard Constructor for the 'Graph' class.
 
 ~VCGNode ()
 Standard Destructor for the 'Graph' class.
 
 VCGNode (const char *title, const char *label)
 Alternate Constructor for the 'Graph' class.
 
void SetTitle (const char *title)
 
void SetLabel (const char *label)
 
void SetShape (const char *shape)
 
void SetBorderColor (const char *color)
 
char * GetTitle () const
 
char * GetLabel () const
 
char * GetShape () const
 
char * GetBorderColor () const
 

Friends

std::ostream & operator<< (std::ostream &out, VCGNode &v)
 

Detailed Description

Definition at line 97 of file VCG.h.

Constructor & Destructor Documentation

◆ VCGNode() [1/2]

VCGNode::VCGNode ( )

Standard Constructor for the 'Graph' class.

Definition at line 288 of file VCG.cpp.

288 :
289 mTitle(strdup("Default VCG Node Title")),
290 mLabel(strdup("Default Label")),
291 mShape(strdup("box")),
292 mBorderColor(strdup("black"))
293{
294 //Standard Constructor
295
296}

◆ ~VCGNode()

VCGNode::~VCGNode ( )

Standard Destructor for the 'Graph' class.

Definition at line 316 of file VCG.cpp.

317{
318 free(mTitle);
319 free(mLabel);
320 free(mShape);
321 free(mBorderColor);
322}

◆ VCGNode() [2/2]

VCGNode::VCGNode ( const char *  title,
const char *  label 
)

Alternate Constructor for the 'Graph' class.

Definition at line 301 of file VCG.cpp.

301 :
302 mTitle(strdup(title)),
303 mLabel(strdup(label)),
304 mShape(strdup("box")),
305 mBorderColor(strdup("black"))
306
307{
308 //Standard Constructor
309
310}

Member Function Documentation

◆ GetBorderColor()

char * VCGNode::GetBorderColor ( ) const
inline

Definition at line 112 of file VCG.h.

112{return mBorderColor;};

Referenced by operator<<().

◆ GetLabel()

char * VCGNode::GetLabel ( ) const
inline

Definition at line 110 of file VCG.h.

110{return mLabel;};

Referenced by operator<<().

◆ GetShape()

char * VCGNode::GetShape ( ) const
inline

Definition at line 111 of file VCG.h.

111{return mShape;};

Referenced by operator<<().

◆ GetTitle()

char * VCGNode::GetTitle ( ) const
inline

Definition at line 109 of file VCG.h.

109{return mTitle;};

Referenced by operator<<().

◆ SetBorderColor()

void VCGNode::SetBorderColor ( const char *  color)
inline

Definition at line 107 of file VCG.h.

107{if(mBorderColor)free(mBorderColor); mBorderColor=strdup(color);};

Referenced by VCG::Evaluate().

◆ SetLabel()

void VCGNode::SetLabel ( const char *  label)
inline

Definition at line 105 of file VCG.h.

105{if(mLabel)free(mLabel);mLabel=strdup(label);};

◆ SetShape()

void VCGNode::SetShape ( const char *  shape)
inline

Definition at line 106 of file VCG.h.

106{if(mShape)free(mShape);mShape=strdup(shape);};

Referenced by VCG::Evaluate().

◆ SetTitle()

void VCGNode::SetTitle ( const char *  title)
inline

Definition at line 104 of file VCG.h.

104{if(mTitle)free(mTitle);mTitle=strdup(title);};

Friends And Related Symbol Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream &  out,
VCGNode v 
)
friend

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