/usr/include/vtk-5.10/vtkHyperOctreeFractalSource.h is in libvtk5-dev 5.10.1+dfsg-2.1build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 | /*=========================================================================
Program: Visualization Toolkit
Module: vtkHyperOctreeFractalSource.h
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notice for more information.
=========================================================================*/
// .NAME vtkHyperOctreeFractalSource - Create an octree from a fractal.
// hyperoctree
// .SECTION Description
//
// .SECTION See Also
// vtkHyperOctreeSampleFunction
#ifndef __vtkHyperOctreeFractalSource_h
#define __vtkHyperOctreeFractalSource_h
#include "vtkHyperOctreeAlgorithm.h"
class vtkImplicitFunction;
class VTK_GRAPHICS_EXPORT vtkHyperOctreeFractalSource : public vtkHyperOctreeAlgorithm
{
public:
vtkTypeMacro(vtkHyperOctreeFractalSource,vtkHyperOctreeAlgorithm);
void PrintSelf(ostream& os, vtkIndent indent);
static vtkHyperOctreeFractalSource *New();
// Description:
// Return the maximum number of levels of the hyperoctree.
// \post positive_result: result>=1
int GetMaximumLevel();
// Description:
// Set the maximum number of levels of the hyperoctree. If
// GetMinLevels()>=levels, GetMinLevels() is changed to levels-1.
// \pre positive_levels: levels>=1
// \post is_set: this->GetLevels()==levels
// \post min_is_valid: this->GetMinLevels()<this->GetLevels()
void SetMaximumLevel(int levels);
// Description:
// Return the minimal number of levels of systematic subdivision.
// \post positive_result: result>=0
void SetMinimumLevel(int level);
int GetMinimumLevel();
//========== Mandelbrot parameters ==========
// Description:
// Set the projection from the 4D space (4 parameters / 2 imaginary numbers)
// to the axes of the 3D Volume.
// 0=C_Real, 1=C_Imaginary, 2=X_Real, 4=X_Imaginary
void SetProjectionAxes(int x, int y, int z);
void SetProjectionAxes(int a[3]) {this->SetProjectionAxes(a[0],a[1],a[2]);}
vtkGetVector3Macro(ProjectionAxes, int);
// Description:
// Imaginary and real value for C (constant in equation)
// and X (initial value).
vtkSetVector4Macro(OriginCX, double);
vtkGetVector4Macro(OriginCX, double);
// Description:
// Just a different way of setting the sample.
// This sets the size of the 4D volume.
// SampleCX is computed from size and extent.
// Size is ignored when a dimension i 0 (collapsed).
vtkSetVector4Macro(SizeCX, double);
vtkGetVector4Macro(SizeCX, double);
// Description:
// The maximum number of cycles run to see if the value goes over 2
vtkSetClampMacro(MaximumNumberOfIterations, unsigned short, 1, 255);
vtkGetMacro(MaximumNumberOfIterations, unsigned char);
// Description:
// Create a 2D or 3D fractal.
vtkSetClampMacro(Dimension, int, 2, 3);
vtkGetMacro(Dimension, int);
// Description:
// Controls when a leaf gets subdivided. If the corner values span
// a larger range than this value, the leaf is subdivided. This
// defaults to 2.
vtkSetMacro(SpanThreshold, double);
vtkGetMacro(SpanThreshold, double);
protected:
vtkHyperOctreeFractalSource();
~vtkHyperOctreeFractalSource();
int RequestInformation (vtkInformation * vtkNotUsed(request),
vtkInformationVector ** vtkNotUsed( inputVector ),
vtkInformationVector *outputVector);
virtual int RequestData(vtkInformation *, vtkInformationVector **,
vtkInformationVector *);
void Subdivide(vtkHyperOctreeCursor *cursor,
int level, vtkHyperOctree *output,
double* origin, double* size,
float* cornerVals);
int MaximumLevel;
int MinimumLevel;
int Dimension;
int ProjectionAxes[3];
unsigned char MaximumNumberOfIterations;
// Complex constant/initial-value at origin.
double OriginCX[4];
// A temporary vector that is computed as needed.
// It is used to return a vector.
double SizeCX[4];
float EvaluateWorldPoint(double p[3]);
float EvaluateSet(double p[4]);
double Origin[3];
double Size[3];
double SpanThreshold;
private:
vtkHyperOctreeFractalSource(const vtkHyperOctreeFractalSource&); // Not implemented.
void operator=(const vtkHyperOctreeFractalSource&); // Not implemented.
};
#endif
|