#include <HWindowFilterOOC.h>
Public Member Functions | |
virtual bool | AcceptPoint (ooc::Point const &point, size_t point_index) OVERRIDE |
void | AddRectangleWindow (HBaseView &view, ooc::Point const &window_min, ooc::Point const &window_max) |
void | AddTriangleWindow (HBaseView &view, ooc::Point const &p1, ooc::Point const &p2, ooc::Point const &p3) |
void | ClearWindows () |
bool | HasWindows () const |
HWindowFilterOOC (bool deep_filter) | |
virtual bool | RejectBounding (ooc::Point const &min_bound, ooc::Point const &max_bound) OVERRIDE |
virtual bool | RejectNode (ooc::NodeHandle const &node_handle) OVERRIDE |
virtual bool | RejectPointsInMemory () OVERRIDE |
virtual bool | RejectPointsOnDisk () OVERRIDE |
The HWindowFilterOOC class filters OOC points based on window-space areas. These areas can be a combination of rectangles and triangles.
HWindowFilterOOC::HWindowFilterOOC | ( | bool | deep_filter | ) |
Constructs an HWindowFilterOOC object without any window-space areas to filter OOC points with.
deep_filter | Determines whether or not the constructed object will accept OOC points that are not loaded in memory. |
virtual bool HWindowFilterOOC::AcceptPoint | ( | ooc::Point const & | point, |
size_t | point_index | ||
) | [virtual] |
Rejects a point based on any supplied rectangle or triangle window-space areas. The point is projected to window-space and tested against each of these areas. If any of these areas contains the point, it is accepted.
void HWindowFilterOOC::AddRectangleWindow | ( | HBaseView & | view, |
ooc::Point const & | window_min, | ||
ooc::Point const & | window_max | ||
) |
Adds a rectangle window-space area to filter points with.
void HWindowFilterOOC::AddTriangleWindow | ( | HBaseView & | view, |
ooc::Point const & | p1, | ||
ooc::Point const & | p2, | ||
ooc::Point const & | p3 | ||
) |
Adds a triangle window-space area to filter points with.
void HWindowFilterOOC::ClearWindows | ( | ) |
Discards all existing rectangle or triangle window-space areas that have been added to this object.
Referenced by HSelectionSetOOC< SelectionSet >::Reset().
bool HWindowFilterOOC::HasWindows | ( | ) | const |
virtual bool HWindowFilterOOC::RejectBounding | ( | ooc::Point const & | min_bound, |
ooc::Point const & | max_bound | ||
) | [virtual] |
Rejects boundings based on any supplied rectangle or triangle window-space areas. The boundings are projected to window-space and tested against each of these areas. If none overlap, the bounding is rejected.
virtual bool HWindowFilterOOC::RejectNode | ( | ooc::NodeHandle const & | node_handle | ) | [virtual] |
Never rejects a node based on its node handle.
virtual bool HWindowFilterOOC::RejectPointsInMemory | ( | ) | [virtual] |
Never rejects points in memory.
virtual bool HWindowFilterOOC::RejectPointsOnDisk | ( | ) | [virtual] |
Rejects points on disk if deep_filter is not set through the constructor.