.TH "SoLightPath" 3 "Thu May 29 2014" "Version 4.0.0a" "Coin" \" -*- nroff -*- .ad l .nh .SH NAME SoLightPath \- .PP The \fBSoLightPath\fP class is a light version of \fBSoPath\fP\&. .PP \fBSoLightPath\fP can be used if you only need a temporary path, and don't want the overhead that comes with an \fBSoPath\fP (ref, unref, auditing etc)\&. .SH SYNOPSIS .br .PP .PP \fC#include \fP .SS "Public Member Functions" .in +1c .ti -1c .RI "\fBSoLightPath\fP (\fBSoNode\fP *node, const int approxlength)" .br .ti -1c .RI "\fBSoLightPath\fP (const int approxlength)" .br .ti -1c .RI "\fB~SoLightPath\fP ()" .br .ti -1c .RI "void \fBsetHead\fP (\fBSoNode\fP *const node)" .br .ti -1c .RI "void \fBappend\fP (const int childindex)" .br .ti -1c .RI "void \fBpush\fP (const int childindex)" .br .ti -1c .RI "void \fBpop\fP (void)" .br .ti -1c .RI "void \fBsetTail\fP (const int childindex)" .br .ti -1c .RI "\fBSoNode\fP * \fBgetTail\fP (void) const " .br .ti -1c .RI "\fBSoNode\fP * \fBgetHead\fP (void) const " .br .ti -1c .RI "\fBSoNode\fP * \fBgetNode\fP (const int index) const " .br .ti -1c .RI "int \fBgetIndex\fP (const int index) const " .br .ti -1c .RI "int \fBgetFullLength\fP () const " .br .ti -1c .RI "void \fBtruncate\fP (const int startindex)" .br .ti -1c .RI "void \fBmakeTempPath\fP (\fBSoTempPath\fP *path) const " .br .in -1c .SH "Detailed Description" .PP The \fBSoLightPath\fP class is a light version of \fBSoPath\fP\&. .PP \fBSoLightPath\fP can be used if you only need a temporary path, and don't want the overhead that comes with an \fBSoPath\fP (ref, unref, auditing etc)\&. It is your responsibility to make sure the path is valid before using it\&. .SH "Constructor & Destructor Documentation" .PP .SS "SoLightPath::SoLightPath (\fBSoNode\fP *headnodeptr, const intapproxlength)" A constructor\&. Supply the head node and the approximate length of the path\&. .SS "SoLightPath::SoLightPath (const intapproxlength)" A constructor\&. Supply the appriximate length of the path\&. .SS "SoLightPath::~SoLightPath ()" Destructor\&. .SH "Member Function Documentation" .PP .SS "void SoLightPath::setHead (\fBSoNode\fP *constnode)" Sets head of path\&. Truncates path to length 1\&. .SS "void SoLightPath::append (const intchildindex)" Appends a childindex to the path\&. .SS "void SoLightPath::push (const intchildindex)" Same as \fBappend()\fP\&. .SS "void SoLightPath::pop (void)" Pops off the last child\&. .SS "void SoLightPath::setTail (const intchildindex)" Sets the tail of the path\&. .SS "\fBSoNode\fP * SoLightPath::getTail (void) const" Returns the tail node of the path\&. Uses \fBgetNode()\fP\&. .SS "\fBSoNode\fP * SoLightPath::getHead (void) const" Returns the head node\&. .SS "\fBSoNode\fP * SoLightPath::getNode (const intindex) const" Returns the indexth node in path\&. .SS "int SoLightPath::getIndex (const intindex) const" Returns the child index of the indexth node in the path\&. .SS "int SoLightPath::getFullLength () const" Returns the length of the path\&. .SS "void SoLightPath::truncate (const intstartindex)" Truncates the path from \fIstartindex\fP\&. .SS "void SoLightPath::makeTempPath (\fBSoTempPath\fP *path) const" Updates \fIpath\fP to be the same path as this path\&. .SH "Author" .PP Generated automatically by Doxygen for Coin from the source code\&.