#include <MapPreviewView.h>
Public Member Functions | |
MapPreviewView () | |
bool | TestPoint (const Vector3 &point) const |
Returns true if point intersects volume. | |
bool | TestLine (const Segment &segment) const |
Returns true if segment intersects volume. | |
bool | TestPlane (const Plane3 &plane) const |
Returns true if plane faces towards volume. | |
bool | TestPlane (const Plane3 &plane, const Matrix4 &localToWorld) const |
Returns true if plane transformed by localToWorld faces the viewer. | |
VolumeIntersectionValue | TestAABB (const AABB &aabb) const |
Returns the intersection of aabb and volume. | |
VolumeIntersectionValue | TestAABB (const AABB &aabb, const Matrix4 &localToWorld) const |
Returns the intersection of aabb transformed by localToWorld and volume. | |
bool | fill () const |
const Matrix4 & | GetViewport () const |
const Matrix4 & | GetProjection () const |
const Matrix4 & | GetModelview () const |
Data Fields | |
Matrix4 | modelView |
Matrix4 | projection |
Matrix4 | viewport |
greebo: This is more or less a stub class implementing the needed routines of the VolumeTest abstract base class.
Most routines just return TRUE or positive, so this class won't do any culling.
Definition at line 18 of file MapPreviewView.h.
ui::MapPreviewView::MapPreviewView | ( | ) | [inline] |
Definition at line 25 of file MapPreviewView.h.
bool ui::MapPreviewView::fill | ( | ) | const [inline, virtual] |
Implements VolumeTest.
Definition at line 66 of file MapPreviewView.h.
const Matrix4& ui::MapPreviewView::GetModelview | ( | ) | const [inline, virtual] |
const Matrix4& ui::MapPreviewView::GetProjection | ( | ) | const [inline, virtual] |
const Matrix4& ui::MapPreviewView::GetViewport | ( | ) | const [inline, virtual] |
VolumeIntersectionValue ui::MapPreviewView::TestAABB | ( | const AABB & | aabb, | |
const Matrix4 & | localToWorld | |||
) | const [inline, virtual] |
Returns the intersection of aabb
transformed by localToWorld
and volume.
Implements VolumeTest.
Definition at line 61 of file MapPreviewView.h.
References c_volumeInside().
VolumeIntersectionValue ui::MapPreviewView::TestAABB | ( | const AABB & | aabb | ) | const [inline, virtual] |
Returns the intersection of aabb
and volume.
Implements VolumeTest.
Definition at line 55 of file MapPreviewView.h.
References c_volumeInside().
bool ui::MapPreviewView::TestLine | ( | const Segment & | segment | ) | const [inline, virtual] |
Returns true if segment
intersects volume.
Implements VolumeTest.
Definition at line 37 of file MapPreviewView.h.
bool ui::MapPreviewView::TestPlane | ( | const Plane3 & | plane, | |
const Matrix4 & | localToWorld | |||
) | const [inline, virtual] |
Returns true if plane
transformed by localToWorld
faces the viewer.
Implements VolumeTest.
Definition at line 49 of file MapPreviewView.h.
bool ui::MapPreviewView::TestPlane | ( | const Plane3 & | plane | ) | const [inline, virtual] |
Returns true if plane
faces towards volume.
Implements VolumeTest.
Definition at line 43 of file MapPreviewView.h.
bool ui::MapPreviewView::TestPoint | ( | const Vector3 & | point | ) | const [inline, virtual] |
Returns true if point
intersects volume.
Implements VolumeTest.
Definition at line 31 of file MapPreviewView.h.
Matrix4 ui::MapPreviewView::modelView |
Definition at line 21 of file MapPreviewView.h.
Referenced by GetModelview().
Matrix4 ui::MapPreviewView::projection |
Definition at line 22 of file MapPreviewView.h.
Referenced by GetProjection().
Matrix4 ui::MapPreviewView::viewport |
Definition at line 23 of file MapPreviewView.h.
Referenced by GetViewport().