Public Types | Public Member Functions | Protected Attributes
srs_env_model::CTestingPlane Class Reference

#include <testing_planes.h>

Inheritance diagram for srs_env_model::CTestingPlane:
Inheritance graph
[legend]

List of all members.

Public Types

typedef Eigen::Vector3f tPoint
 Point type.

Public Member Functions

 CTestingPlane ()
 Simple constructor.
 CTestingPlane (const CTestingPlane &plane)
 Copy constructor.
 CTestingPlane (const tPoint &p1, const tPoint &p2, const tPoint &p3)
 CTestingPlane (const tPoint &point, const tPoint &normal)
 Initialize by point and normal.
virtual bool isIn (double x, double y, double z)
 Test point.
CTestingPlane operator= (const CTestingPlane &plane)
 Assignement operator.
void set (const tPoint &p1, const tPoint &p2, const tPoint &p3)
 Initialize by three points.
void set (const tPoint &point, const tPoint &normal)
 Initialize by point and normal.

Protected Attributes

double m_d
 Last plane parameter.
tPoint m_plane
 Plane parameters.

Detailed Description

Test point by plane. Return true if point is in front of this plane.

Definition at line 43 of file testing_planes.h.


Member Typedef Documentation

typedef Eigen::Vector3f srs_env_model::CTestingPlane::tPoint

Point type.

Definition at line 47 of file testing_planes.h.


Constructor & Destructor Documentation

Simple constructor.

Simple constructor

Definition at line 34 of file testing_planes.cpp.

Copy constructor.

Copy constructor

Definition at line 44 of file testing_planes.cpp.

srs_env_model::CTestingPlane::CTestingPlane ( const tPoint p1,
const tPoint p2,
const tPoint p3 
)

Initialize by three points

This points are used:

normal | p3 | / | / | / p1---------------p2

d1 = p2 - p1 d2 = p3 - p1 n = d1 x d2

Initialize by three points

Definition at line 67 of file testing_planes.cpp.

srs_env_model::CTestingPlane::CTestingPlane ( const tPoint point,
const tPoint normal 
)

Initialize by point and normal.

Initialize by point and normal

Definition at line 77 of file testing_planes.cpp.


Member Function Documentation

bool srs_env_model::CTestingPlane::isIn ( double  x,
double  y,
double  z 
) [virtual]

Test point.

Test point

Implements srs_env_model::CTestingObjectBase.

Definition at line 131 of file testing_planes.cpp.

srs_env_model::CTestingPlane srs_env_model::CTestingPlane::operator= ( const CTestingPlane plane)

Assignement operator.

Assignement operator

Definition at line 55 of file testing_planes.cpp.

void srs_env_model::CTestingPlane::set ( const tPoint p1,
const tPoint p2,
const tPoint p3 
)

Initialize by three points.

Initialize by three points

This points are used:

normal | p3 | / | / | / p1---------------p2

d1 = p2 - p1 d2 = p3 - p1 n = d1 x d2

Definition at line 100 of file testing_planes.cpp.

void srs_env_model::CTestingPlane::set ( const tPoint point,
const tPoint normal 
)

Initialize by point and normal.

Initialize by point and normal

Definition at line 120 of file testing_planes.cpp.


Member Data Documentation

Last plane parameter.

Definition at line 97 of file testing_planes.h.

Plane parameters.

Definition at line 94 of file testing_planes.h.


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


srs_env_model
Author(s): Vit Stancl (stancl@fit.vutbr.cz), Tomas Lokaj, Jan Gorig, Michal Spanel (spanel@fit.vutbr.cz)
autogenerated on Sun Jan 5 2014 11:50:51