Itasca C++ Interface
Toggle main menu visibility
Loading...
Searching...
No Matches
iplane.h
Go to the documentation of this file.
1
#pragma once
2
7
8
9
#include "
base/src/base.h
"
10
#include "
dim.h
"
11
12
namespace
itascaxd
{
13
// NOTE: Might want to add distance checking, etc functions to the interface later.
14
// NOTE: This class IS used!
15
17
30
class
IPlane
{
31
public
:
33
enum
IntersectCode
{
34
icFront
=0x01,
35
icBehind
=0x02,
36
icIntersect1
=0x04,
37
icIntersect2
=0x08
38
};
39
41
virtual
const
DVect
&
getOrigin
()
const
=0;
43
virtual
const
Orientation
&
getOrientation
()
const
=0;
46
virtual
double
getDistance
(
const
DVect
&v)
const
=0;
50
virtual
IntersectCode
getIntersection
(
const
DVect
&begin,
const
DVect
&end,
DVect
*loc=0,
double
*dist=0)
const
=0;
52
virtual
DVect
getClosestPoint
(
const
DVect
&v)
const
=0;
54
virtual
void
setOrigin
(
const
DVect
&v)=0;
56
virtual
void
setOrientation
(
const
Orientation
&o)=0;
57
};
58
}
// namespace itascaxd
59
// EoF
base.h
One stop include for all objects defined as part of base interface.
itascaxd::IPlane
Interface for the definition of a Plane in 3D space.
Definition
iplane.h:30
itascaxd::IPlane::getClosestPoint
virtual DVect getClosestPoint(const DVect &v) const =0
Returns the closest point in the plane to v.
itascaxd::IPlane::getOrigin
virtual const DVect & getOrigin() const =0
Returns the plane origin.
itascaxd::IPlane::getIntersection
virtual IntersectCode getIntersection(const DVect &begin, const DVect &end, DVect *loc=0, double *dist=0) const =0
itascaxd::IPlane::getOrientation
virtual const Orientation & getOrientation() const =0
Returns the plane orientation.
itascaxd::IPlane::setOrientation
virtual void setOrientation(const Orientation &o)=0
Sets the plane orientation.
itascaxd::IPlane::getDistance
virtual double getDistance(const DVect &v) const =0
itascaxd::IPlane::IntersectCode
IntersectCode
Possible intersection types.
Definition
iplane.h:33
itascaxd::IPlane::icFront
@ icFront
Definition
iplane.h:34
itascaxd::IPlane::icBehind
@ icBehind
Definition
iplane.h:35
itascaxd::IPlane::icIntersect2
@ icIntersect2
Definition
iplane.h:37
itascaxd::IPlane::icIntersect1
@ icIntersect1
Definition
iplane.h:36
itascaxd::IPlane::setOrigin
virtual void setOrigin(const DVect &v)=0
Sets the plane origin.
dim.h
DIM - Provides code portability between 2D and 3D codes.
Orientation
Orientation3 Orientation
Class for storing an "orientation", or a direction in space, either 2D or 3D.
Definition
dim.h:168
DVect
DVect3 DVect
Vector of doubles, either 2D or 3D.
Definition
dim.h:156
itascaxd
Itasca Library standard namespace, specific to 2D or 3D.
Definition
icontactmodule.h:6
common
module
interface
iplane.h
Generated by
1.18.0