![]() |
rtVTK
0.6.0
|
RayLog namespace. More...
RayLog namespace.
Collects functionality for manipulating rays.
typedef vector<RayRecord>::iterator rl::RRiter |
typedef vector<TreeRecord>::iterator rl::TRiter |
typedef unsigned short int rl::ushort |
To make the trees take less disk space.
enum rl::Error |
List of all expected rl errors.
NoError |
all is well: no errors |
Init_NoRLClose |
this->close was not called |
Init_InvalidFName |
the file name is invalid - either non-blank in rl::ImmediateMode or blank in the other modes |
Init_FileOpenFailed |
the file could not be opened in rl::ReadMode or rl::WriteMode |
Init_InvalidFile |
the file is not in the right format in rl::ReadMode |
Init_NoTrees |
there are no trees in the file in rl::ReadMode |
NextRay_InvalidState |
cannot be called in rl::DepthFirst mode |
NextRay_InvalidMode |
cannot be called in rl::ReadMode, or there was a previous fatal error |
NextRay_InvalidContext |
cannot be called before a beginTree call |
NextRay_NoTrees |
cannot be called when no trees exist |
NextRay_InvalidTree |
the insertion point is on the beginning or end, not a tree |
NextRay_TreeEnded |
the current tree has been ended |
NextRay_EmptyTree |
the current tree is empty - there is no ray to move to |
NextRay_NoMoreRays |
there are no more rays to move to |
DescendTree_InvalidState |
cannot be called in rl::BreadthFirst mode |
DescendTree_InvalidMode |
cannot be called in rl::ReadMode, or there was a previous fatal error |
DescendTree_InvalidContext |
cannot be called before beginForest (beginTree for rl::ImmediateMode) |
DescendTree_NoTrees |
cannot be called when no trees exist |
DescendTree_InvalidTree |
the insertion point is on the beginning or end, not a tree |
DescendTree_TreeEnded |
the current tree has been ended |
DescendTree_EmptyTree |
the current tree is empty - there is no ray to move to |
DescendTree_NoChild |
the current ray has no child to move to |
AscendTree_InvalidState |
cannot be called in rl::BreadthFirst mode |
AscendTree_InvalidMode |
cannot be called in rl::ReadMode, or there was a previous fatal error |
AscendTree_InvalidContext |
cannot be called before beginForest (beginTree for rl::ImmediateMode) |
AscendTree_NoTrees |
cannot be called when no trees exist |
AscendTree_InvalidTree |
the insertion point is on the beginning or end, not a tree |
AscendTree_TreeEnded |
the current tree has been ended |
AscendTree_EmptyTree |
the current tree is empty - there is no ray to move to |
AscendTree_TopLevel |
the current ray has no parent to move to |
NextTree_InvalidMode |
cannot be called in rl::ImmediateMode |
NextTree_InvalidContext |
cannot be called in rl::WriteMode before beginForest |
NextTree_NoMoreTrees |
no more trees to which to move |
PrevTree_InvalidMode |
can only be called in rl::ReadMode |
PrevTree_NoMoreTrees |
no more trees to which to move |
ReadTree_InvalidMode |
cannot be called in rl::WriteMode |
ReadTree_InvalidContext |
cannot be called before endTree in rl::ImmediateMode |
ReadTree_Uninitialized |
the current tree is the beginning or end, not a tree |
ReadRays_InvalidMode |
can only be called in rl::ReadMode |
ReadRays_Uninitialized |
the current tree is the beginning or end, not a tree |
PopulateTree_InvalidMode |
cannot be called in rl::WriteMode |
PopulateTree_InvalidContext |
cannot be called before endTree in rl::ImmediateMode |
PopulateTree_Uninitialized |
the current tree is the beginning or end, not a tree |
ReadRay_InvalidMode |
cannot be called in rl::WriteMode |
ReadRay_InvalidContext |
cannot be called before endTree in rl::ImmediateMode |
ReadRay_Uninitialized |
the current tree is the beginning or end, not a tree |
ReadRay_NoMoreRays |
no more rays to read |
StartRays_InvalidMode |
cannot be called in rl::WriteMode |
StartRays_InvalidContext |
cannot be called before endTree in rl::ImmediateMode |
StartRays_Uninitialized |
the current tree is the beginning or end, not a tree |
BeginForest_InvalidMode |
can only be called in rl::WriteMode |
BeginForest_NoEndForest |
cannot be called multiple times before endForest |
EndForest_InvalidMode |
can only be called in rl::WriteMode |
EndForest_NoBeginForest |
cannot be called before beginForest |
EndForest_OpenTrees |
some trees are still open - warning only |
BeginTree_InvalidMode |
cannot be called in rl::ReadMode |
BeginTree_InvalidContext |
cannot be called before beginForest in rl::ReadMode, or after another beginTree for rl::ImmediateMode |
EndTree_InvalidMode |
cannot be called in rl::ReadMode |
EndTree_InvalidContext |
cannot be called before beginForest (beginTree in rl::ImmediateMode) |
EndTree_NoTrees |
no trees in forest |
EndTree_InvalidTree |
the current tree is the beginning or end, not a tree |
EndTree_AlreadyEnded |
the current tree has been ended |
AddRay_InvalidMode |
cannot be called in rl::ReadMode |
AddRay_InvalidContext |
cannot be called after endForest (endTree in rl::ImmediateMode) |
AddRay_NoTrees |
no trees in forest |
AddRay_InvalidTree |
the current tree is the beginning or end, not a tree |
AddRay_TreeEnded |
the current tree has been ended |
AddRay_OneHeadRay |
trying to set multiple head rays - not allowed |
enum rl::IOMode |
enum rl::RayType |
enum rl::TraversalMode |
ostream & rl::operator<< | ( | ostream & | out, |
const TreeRecord & | t | ||
) |
overloaded insertion operator
References rl::TreeRecord::depth, rl::TreeRecord::origin, rl::TreeRecord::px, rl::TreeRecord::py, and rl::TreeRecord::record_offset.
ostream & rl::operator<< | ( | ostream & | out, |
const Ray & | r | ||
) |
References rl::Ray::child, rl::Ray::data, rl::Ray::depth, rl::Ray::dir, rl::Ray::nbytes, rl::Ray::next, rl::Ray::origin, rl::Ray::parent, rl::Ray::prev, rl::Ray::tval, and rl::Ray::type.
ostream & rl::operator<< | ( | ostream & | out, |
const RayRecord & | r | ||
) |
overloaded insertion operator
References rl::RayRecord::child, rl::RayRecord::data, rl::RayRecord::depth, rl::RayRecord::distance, rl::RayRecord::nbytes, rl::RayRecord::next, rl::RayRecord::origin, rl::RayRecord::parent, rl::RayRecord::prev, and rl::RayRecord::type.
ostream & rl::operator<< | ( | ostream & | out, |
const Tree & | t | ||
) |
References rl::Tree::origin, rl::Tree::px, and rl::Tree::py.
ostream & rl::operator<< | ( | ostream & | out, |
const RayType & | rt | ||
) |
References DiffuseRay, EyeRay, InvalidRay, ReflectionRay, ShadowRay, and TransmissionRay.
ostream& rl::operator<< | ( | ostream & | out, |
const RayLogger::TreeRecordIO & | rtout | ||
) |
ostream& rl::operator<< | ( | ostream & | out, |
const RayLogger::RayRecordIO & | rrout | ||
) |
istream & rl::operator>> | ( | istream & | in, |
RayType & | rt | ||
) |
References DiffuseRay, EyeRay, InvalidRay, ReflectionRay, ShadowRay, and TransmissionRay.
istream& rl::operator>> | ( | istream & | in, |
RayLogger::TreeRecordIO & | rtin | ||
) |
istream& rl::operator>> | ( | istream & | in, |
RayLogger::RayRecordIO & | rrin | ||
) |
bool rl::read | ( | istream & | in, |
RayType & | rt | ||
) |
References DiffuseRay, EyeRay, InvalidRay, ReflectionRay, ShadowRay, and TransmissionRay.
bool rl::write | ( | ostream & | out, |
const RayType & | rt | ||
) |
References DiffuseRay, EyeRay, InvalidRay, ReflectionRay, ShadowRay, and TransmissionRay.