Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
dtk-visualization
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
11
Issues
11
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
dtk
dtk-visualization
Commits
868e9c49
Commit
868e9c49
authored
Oct 17, 2019
by
NICLAUSSE Nicolas
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'release/2.14.1'
parents
96787d4e
237aa857
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
30 additions
and
3 deletions
+30
-3
CHANGELOG.md
CHANGELOG.md
+3
-0
CMakeLists.txt
CMakeLists.txt
+1
-1
src/dtkVisualization/dtkVisualizationDecoratorScalarGlyphs.cpp
...tkVisualization/dtkVisualizationDecoratorScalarGlyphs.cpp
+22
-1
src/dtkVisualization/dtkVisualizationDecoratorScalarGlyphs.h
src/dtkVisualization/dtkVisualizationDecoratorScalarGlyphs.h
+4
-1
No files found.
CHANGELOG.md
View file @
868e9c49
# Change Log:
# 2.14.1 17-Oct-2019
-
Non lazy instanciation scheme for specific situations in ScalarGlyph decorator
# 2.14.0 15-Oct-2019
-
really fix viewVideoRaster widgets
-
must increase minor number because of API change in 2.13.2
...
...
CMakeLists.txt
View file @
868e9c49
...
...
@@ -24,7 +24,7 @@ project(dtkVisualization)
set
(
${
PROJECT_NAME
}
_VERSION_MAJOR 2
)
set
(
${
PROJECT_NAME
}
_VERSION_MINOR 14
)
set
(
${
PROJECT_NAME
}
_VERSION_PATCH
0
)
set
(
${
PROJECT_NAME
}
_VERSION_PATCH
1
)
set
(
${
PROJECT_NAME
}
_VERSION
${${
PROJECT_NAME
}
_VERSION_MAJOR
}
.
${${
PROJECT_NAME
}
_VERSION_MINOR
}
.
${${
PROJECT_NAME
}
_VERSION_PATCH
}
)
...
...
src/dtkVisualization/dtkVisualizationDecoratorScalarGlyphs.cpp
View file @
868e9c49
...
...
@@ -92,20 +92,30 @@ dtkVisualizationDecoratorScalarGlyphs::dtkVisualizationDecoratorScalarGlyphs(voi
d
->
source_sphere
->
SetThetaResolution
(
12.
);
d
->
source_sphere
->
SetPhiResolution
(
12.
);
d
->
source_sphere
->
Update
();
d
->
source_arrow
->
SetShaftRadius
(
d
->
default_glyph_size
);
d
->
source_arrow
->
SetTipRadius
(
d
->
default_glyph_size
);
d
->
source_arrow
->
Update
();
d
->
source_cube
->
SetXLength
(
d
->
default_glyph_size
);
d
->
source_cube
->
SetYLength
(
d
->
default_glyph_size
);
d
->
source_cube
->
SetZLength
(
d
->
default_glyph_size
);
d
->
source_cube
->
Update
();
d
->
source_cylinder
->
SetRadius
(
d
->
default_glyph_size
);
d
->
source_cylinder
->
Update
();
d
->
source_polygon
->
SetRadius
(
d
->
default_glyph_size
);
d
->
source_polygon
->
Update
();
d
->
source_sphere
->
SetRadius
(
d
->
default_glyph_size
);
d
->
source_sphere
->
Update
();
d
->
cell_centers
=
vtkSmartPointer
<
vtkCellCenters
>::
New
();
d
->
glyphs
=
vtkSmartPointer
<
vtkGlyph3D
>::
New
();
d
->
glyphs
->
SetSource
Connection
(
d
->
source_sphere
->
GetOutputPor
t
());
d
->
glyphs
->
SetSource
Data
(
d
->
source_sphere
->
GetOutpu
t
());
d
->
glyphs
->
SetScaleModeToDataScalingOff
();
d
->
glyphs
->
SetColorModeToColorByScalar
();
d
->
glyphs
->
GeneratePointIdsOn
();
...
...
@@ -468,5 +478,16 @@ void *dtkVisualizationDecoratorScalarGlyphs::actor(void)
return
d
->
actor
;
}
void
dtkVisualizationDecoratorScalarGlyphs
::
touch
(
void
)
{
dtkVisualizationDecoratorWithClut
::
touch
();
if
(
!
d_func
()
->
dataset
)
return
;
d
->
glyphs
->
SetInputData
(
d_func
()
->
dataset
);
d
->
glyphs
->
Update
();
}
//
// dtkVisualizationDecoratorScalarGlyphs.cpp ends here
src/dtkVisualization/dtkVisualizationDecoratorScalarGlyphs.h
View file @
868e9c49
...
...
@@ -50,7 +50,10 @@ signals:
public:
void
*
glyphs
(
void
);
void
*
actor
(
void
);
public:
void
touch
(
void
)
override
;
protected:
class
dtkVisualizationDecoratorScalarGlyphsPrivate
*
d
=
nullptr
;
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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