Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
VTK
VTK
Commits
8b081c7e
Commit
8b081c7e
authored
Feb 28, 1994
by
Will Schroeder
Browse files
ENH: Added some new scalar types.
parent
9c95e412
Changes
2
Hide whitespace changes
Inline
Side-by-side
include/Scalars.hh
View file @
8b081c7e
...
...
@@ -34,7 +34,7 @@ public:
virtual
float
GetScalar
(
int
i
)
=
0
;
virtual
void
SetScalar
(
int
i
,
float
s
)
=
0
;
// fast insert
virtual
void
InsertScalar
(
int
i
,
float
s
)
=
0
;
// allocates memory as necessary
void
GetScalars
(
vlIdList
&
ptId
,
vlFloatScalars
&
f
p
);
void
GetScalars
(
vlIdList
&
ptId
,
vlFloatScalars
&
f
s
);
char
*
GetClassName
()
{
return
"vlScalars"
;};
void
PrintSelf
(
ostream
&
os
,
vlIndent
indent
);
virtual
void
ComputeRange
();
...
...
src/Scalars.cc
View file @
8b081c7e
...
...
@@ -26,11 +26,11 @@ vlScalars::vlScalars()
this
->
Range
[
1
]
=
1.0
;
}
void
vlScalars
::
GetScalars
(
vlIdList
&
ptId
,
vlFloatScalars
&
f
p
)
void
vlScalars
::
GetScalars
(
vlIdList
&
ptId
,
vlFloatScalars
&
f
s
)
{
for
(
int
i
=
0
;
i
<
ptId
.
NumberOfIds
();
i
++
)
{
f
p
.
InsertScalar
(
i
,
this
->
GetScalar
(
ptId
[
i
]));
f
s
.
InsertScalar
(
i
,
this
->
GetScalar
(
ptId
[
i
]));
}
}
void
vlScalars
::
ComputeRange
()
...
...
Write
Preview
Supports
Markdown
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