Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bill Lorensen
VTK
Commits
336da26f
Commit
336da26f
authored
Apr 17, 2012
by
Philippe Pébay
Browse files
Renamed HT FractalSource a Generator because it is not a source
Change-Id: I9071b1eaf6d4c1e1a12e702a77946911ffb5df82
parent
b32a9e5f
Changes
5
Hide whitespace changes
Inline
Side-by-side
Filters/HyperTree/CMakeLists.txt
View file @
336da26f
...
...
@@ -9,7 +9,7 @@ set(Module_SRCS
vtkHyperOctreeSampleFunction.cxx
vtkHyperOctreeSurfaceFilter.cxx
vtkHyperOctreeToUniformGridFilter.cxx
vtkHyperTree
FractalSource
.cxx
vtkHyperTree
Generator
.cxx
vtkHyperTreeGrid.cxx
)
...
...
Filters/HyperTree/Testing/Cxx/TestBinaryHyperTreeGrid.cxx
View file @
336da26f
...
...
@@ -22,7 +22,7 @@
#include
<vtksys/Process.h>
#include
<string>
#include
"vtkHyperTreeGrid.h"
#include
"vtkHyperTree
FractalSource
.h"
#include
"vtkHyperTree
Generator
.h"
#include
"vtkContourFilter.h"
#include
"vtkCutter.h"
...
...
@@ -43,7 +43,7 @@
int
TestBinaryHyperTreeGrid
(
int
argc
,
char
**
argv
)
{
vtkNew
<
vtkHyperTree
FractalSource
>
fractal
;
vtkNew
<
vtkHyperTree
Generator
>
fractal
;
fractal
->
SetMaximumLevel
(
4
);
fractal
->
DualOn
();
fractal
->
SetDimension
(
3
);
...
...
Filters/HyperTree/Testing/Cxx/TestHyperTreeGrid.cxx
View file @
336da26f
...
...
@@ -8,7 +8,7 @@
// This test was written by Charles Law and Philippe Pebay, Kitware 2012
#include
"vtkHyperTreeGrid.h"
#include
"vtkHyperTree
FractalSource
.h"
#include
"vtkHyperTree
Generator
.h"
#include
"vtkCamera.h"
#include
"vtkContourFilter.h"
...
...
@@ -30,7 +30,7 @@
int
TestHyperTreeGrid
(
int
argc
,
char
**
argv
)
{
vtkNew
<
vtkHyperTree
FractalSource
>
fractal
;
vtkNew
<
vtkHyperTree
Generator
>
fractal
;
fractal
->
SetMaximumLevel
(
3
);
fractal
->
DualOn
();
fractal
->
SetGridSize
(
3
,
2
,
2
);
...
...
Filters/HyperTree/vtkHyperTree
FractalSource
.cxx
→
Filters/HyperTree/vtkHyperTree
Generator
.cxx
View file @
336da26f
/*=========================================================================
Program: Visualization Toolkit
Module: vtkHyperTree
FractalSource
.cxx
Module: vtkHyperTree
Generator
.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
...
...
@@ -12,7 +12,7 @@ the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notice for more information.
=========================================================================*/
#include
"vtkHyperTree
FractalSource
.h"
#include
"vtkHyperTree
Generator
.h"
#include
"vtkObjectFactory.h"
#include
"vtkDataArray.h"
...
...
@@ -27,10 +27,10 @@ PURPOSE. See the above copyright notice for more information.
#include
<assert.h>
vtkStandardNewMacro
(
vtkHyperTree
FractalSource
);
vtkStandardNewMacro
(
vtkHyperTree
Generator
);
//----------------------------------------------------------------------------
vtkHyperTree
FractalSource
::
vtkHyperTree
FractalSource
()
vtkHyperTree
Generator
::
vtkHyperTree
Generator
()
{
this
->
GridSize
[
0
]
=
1
;
this
->
GridSize
[
1
]
=
1
;
...
...
@@ -42,12 +42,12 @@ vtkHyperTreeFractalSource::vtkHyperTreeFractalSource()
}
//----------------------------------------------------------------------------
vtkHyperTree
FractalSource
::~
vtkHyperTree
FractalSource
()
vtkHyperTree
Generator
::~
vtkHyperTree
Generator
()
{
}
//----------------------------------------------------------------------------
vtkHyperTreeGrid
*
vtkHyperTree
FractalSource
::
NewHyperTreeGrid
()
vtkHyperTreeGrid
*
vtkHyperTree
Generator
::
NewHyperTreeGrid
()
{
// Instantiate hyper tree grid
vtkHyperTreeGrid
*
output
=
vtkHyperTreeGrid
::
New
();
...
...
@@ -136,7 +136,7 @@ vtkHyperTreeGrid* vtkHyperTreeFractalSource::NewHyperTreeGrid()
}
//----------------------------------------------------------------------------
void
vtkHyperTree
FractalSource
::
Subdivide
(
vtkHyperTreeCursor
*
cursor
,
void
vtkHyperTree
Generator
::
Subdivide
(
vtkHyperTreeCursor
*
cursor
,
int
level
,
vtkHyperTreeGrid
*
output
,
int
index
,
...
...
@@ -216,7 +216,7 @@ void vtkHyperTreeFractalSource::Subdivide( vtkHyperTreeCursor* cursor,
}
//-----------------------------------------------------------------------------
void
vtkHyperTree
FractalSource
::
PrintSelf
(
ostream
&
os
,
vtkIndent
indent
)
void
vtkHyperTree
Generator
::
PrintSelf
(
ostream
&
os
,
vtkIndent
indent
)
{
this
->
Superclass
::
PrintSelf
(
os
,
indent
);
}
Filters/HyperTree/vtkHyperTree
FractalSource
.h
→
Filters/HyperTree/vtkHyperTree
Generator
.h
View file @
336da26f
/*=========================================================================
Program: Visualization Toolkit
Module: vtkHyperTree
FractalSource
.h
Module: vtkHyperTree
Generator
.h
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
...
...
@@ -12,15 +12,15 @@
PURPOSE. See the above copyright notice for more information.
=========================================================================*/
// .NAME vtkHyperTree
FractalSource
- Create a hyper tree grid from a fractal.
// .NAME vtkHyperTree
Generator
- Create a hyper tree grid from a fractal.
// hyperTree
// .SECTION Description
//
// .SECTION See Also
// vtkHyperTreeSampleFunction
#ifndef __vtkHyperTree
FractalSource
_h
#define __vtkHyperTree
FractalSource
_h
#ifndef __vtkHyperTree
Generator
_h
#define __vtkHyperTree
Generator
_h
#include
"vtkFiltersHyperTreeModule.h"
// For export macro
#include
"vtkObject.h"
...
...
@@ -29,13 +29,13 @@ class vtkImplicitFunction;
class
vtkHyperTreeGrid
;
class
vtkHyperTreeCursor
;
class
VTKFILTERSHYPERTREE_EXPORT
vtkHyperTree
FractalSource
:
public
vtkObject
class
VTKFILTERSHYPERTREE_EXPORT
vtkHyperTree
Generator
:
public
vtkObject
{
public:
vtkTypeMacro
(
vtkHyperTree
FractalSource
,
vtkObject
);
vtkTypeMacro
(
vtkHyperTree
Generator
,
vtkObject
);
void
PrintSelf
(
ostream
&
os
,
vtkIndent
indent
);
static
vtkHyperTree
FractalSource
*
New
();
static
vtkHyperTree
Generator
*
New
();
vtkSetVector3Macro
(
GridSize
,
int
);
vtkGetVector3Macro
(
GridSize
,
int
);
...
...
@@ -57,8 +57,8 @@ public:
vtkHyperTreeGrid
*
NewHyperTreeGrid
();
protected:
vtkHyperTree
FractalSource
();
~
vtkHyperTree
FractalSource
();
vtkHyperTree
Generator
();
~
vtkHyperTree
Generator
();
void
Subdivide
(
vtkHyperTreeCursor
*
cursor
,
int
level
,
...
...
@@ -75,8 +75,8 @@ protected:
int
Dual
;
private:
vtkHyperTree
FractalSource
(
const
vtkHyperTree
FractalSource
&
);
// Not implemented.
void
operator
=
(
const
vtkHyperTree
FractalSource
&
);
// Not implemented.
vtkHyperTree
Generator
(
const
vtkHyperTree
Generator
&
);
// Not implemented.
void
operator
=
(
const
vtkHyperTree
Generator
&
);
// Not implemented.
};
#endif
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment