VTK
9.1.0
Common
DataModel
vtkCone.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkCone.h
5
6
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7
All rights reserved.
8
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10
This software is distributed WITHOUT ANY WARRANTY; without even
11
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12
PURPOSE. See the above copyright notice for more information.
13
14
=========================================================================*/
80
#ifndef vtkCone_h
81
#define vtkCone_h
82
83
#include "vtkCommonDataModelModule.h"
// For export macro
84
#include "
vtkImplicitFunction.h
"
85
86
class
VTKCOMMONDATAMODEL_EXPORT
vtkCone
:
public
vtkImplicitFunction
87
{
88
public
:
92
static
vtkCone
*
New
();
93
94
vtkTypeMacro(
vtkCone
,
vtkImplicitFunction
);
95
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
96
98
101
using
vtkImplicitFunction::EvaluateFunction
;
102
double
EvaluateFunction
(
double
x[3])
override
;
104
108
void
EvaluateGradient
(
double
x[3],
double
g[3])
override
;
109
111
114
vtkSetClampMacro(Angle,
double
, 0.0, 89.0);
115
vtkGetMacro(Angle,
double
);
117
118
protected
:
119
vtkCone
();
120
~vtkCone
()
override
=
default
;
121
122
double
Angle
;
123
124
private
:
125
vtkCone
(
const
vtkCone
&) =
delete
;
126
void
operator=(
const
vtkCone
&) =
delete
;
127
};
128
129
#endif
vtkCone::New
static vtkCone * New()
Construct cone with angle of 45 degrees.
vtkImplicitFunction::EvaluateFunction
virtual double EvaluateFunction(double x[3])=0
Evaluate function at position x-y-z and return value.
vtkCone::~vtkCone
~vtkCone() override=default
vtkImplicitFunction
abstract interface for implicit functions
Definition:
vtkImplicitFunction.h:80
vtkCone::EvaluateFunction
double EvaluateFunction(double x[3]) override
Evaluate cone equation.
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:113
vtkCone::EvaluateGradient
void EvaluateGradient(double x[3], double g[3]) override
Evaluate cone normal.
vtkCone::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkCone::vtkCone
vtkCone()
vtkImplicitFunction.h
vtkCone::Angle
double Angle
Definition:
vtkCone.h:122
vtkCone
implicit function for a cone
Definition:
vtkCone.h:87
Generated on Fri Nov 5 2021 00:10:59 for VTK by
1.8.20