VTK-m  2.0
Public Member Functions | Private Attributes | List of all members
vtkm::Frustum Class Reference

Implicit function for a frustum. More...

#include <ImplicitFunction.h>

Inheritance diagram for vtkm::Frustum:
vtkm::cont::ExecutionAndControlObjectBase vtkm::cont::ExecutionObjectBase

Public Member Functions

 Frustum ()=default
 Construct axis-aligned frustum with center at (0,0,0) and each side of length 1.0. More...
 
VTKM_EXEC_CONT Frustum (const Vector points[6], const Vector normals[6])
 
VTKM_EXEC_CONT Frustum (const Vector points[8])
 
VTKM_EXEC void SetPlanes (const Vector points[6], const Vector normals[6])
 
VTKM_EXEC void SetPlane (int idx, const Vector &point, const Vector &normal)
 
VTKM_EXEC_CONT void GetPlanes (Vector points[6], Vector normals[6]) const
 
const VTKM_EXEC_CONT Vector * GetPoints () const
 
const VTKM_EXEC_CONT Vector * GetNormals () const
 
VTKM_EXEC_CONT void CreateFromPoints (const Vector points[8])
 
VTKM_EXEC_CONT Scalar Value (const Vector &point) const
 
VTKM_EXEC_CONT Vector Gradient (const Vector &point) const
 

Private Attributes

Vector Points [6]
 
Vector Normals [6]
 

Detailed Description

Implicit function for a frustum.

Constructor & Destructor Documentation

◆ Frustum() [1/3]

vtkm::Frustum::Frustum ( )
default

Construct axis-aligned frustum with center at (0,0,0) and each side of length 1.0.

◆ Frustum() [2/3]

VTKM_EXEC_CONT vtkm::Frustum::Frustum ( const Vector  points[6],
const Vector  normals[6] 
)
inline

◆ Frustum() [3/3]

VTKM_EXEC_CONT vtkm::Frustum::Frustum ( const Vector  points[8])
inlineexplicit

Member Function Documentation

◆ CreateFromPoints()

VTKM_EXEC_CONT void vtkm::Frustum::CreateFromPoints ( const Vector  points[8])
inline

◆ GetNormals()

const VTKM_EXEC_CONT Vector* vtkm::Frustum::GetNormals ( ) const
inline

◆ GetPlanes()

VTKM_EXEC_CONT void vtkm::Frustum::GetPlanes ( Vector  points[6],
Vector  normals[6] 
) const
inline

◆ GetPoints()

const VTKM_EXEC_CONT Vector* vtkm::Frustum::GetPoints ( ) const
inline

◆ Gradient()

VTKM_EXEC_CONT Vector vtkm::Frustum::Gradient ( const Vector &  point) const
inline

◆ SetPlane()

VTKM_EXEC void vtkm::Frustum::SetPlane ( int  idx,
const Vector &  point,
const Vector &  normal 
)
inline

◆ SetPlanes()

VTKM_EXEC void vtkm::Frustum::SetPlanes ( const Vector  points[6],
const Vector  normals[6] 
)
inline

◆ Value()

VTKM_EXEC_CONT Scalar vtkm::Frustum::Value ( const Vector &  point) const
inline

Member Data Documentation

◆ Normals

Vector vtkm::Frustum::Normals[6]
private
Initial value:
= { { -1.0f, 0.0f, 0.0f }, { 1.0f, 0.0f, 0.0f }, { 0.0f, -1.0f, 0.0f },
{ 0.0f, 1.0f, 0.0f }, { 0.0f, 0.0f, -1.0f }, { 0.0f, 0.0f, 1.0f } }

◆ Points

Vector vtkm::Frustum::Points[6]
private
Initial value:
= { { -0.5f, 0.0f, 0.0f }, { 0.5f, 0.0f, 0.0f }, { 0.0f, -0.5f, 0.0f },
{ 0.0f, 0.5f, 0.0f }, { 0.0f, 0.0f, -0.5f }, { 0.0f, 0.0f, 0.5f } }

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