Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
openfoam
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Development
openfoam
Commits
cb29fc7c
Commit
cb29fc7c
authored
12 years ago
by
andy
Browse files
Options
Downloads
Patches
Plain Diff
ENH: restructured pv reader interface
parent
1f568c21
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
applications/utilities/postProcessing/graphics/PV3Readers/PV3FoamReader/PV3FoamReader/pqPV3FoamReaderPanel.cxx
+66
-39
66 additions, 39 deletions
...ders/PV3FoamReader/PV3FoamReader/pqPV3FoamReaderPanel.cxx
with
66 additions
and
39 deletions
applications/utilities/postProcessing/graphics/PV3Readers/PV3FoamReader/PV3FoamReader/pqPV3FoamReaderPanel.cxx
+
66
−
39
View file @
cb29fc7c
...
...
@@ -62,6 +62,9 @@ pqPV3FoamReaderPanel::pqPV3FoamReaderPanel
QGridLayout
*
form
=
new
QGridLayout
();
this
->
PanelLayout
->
addLayout
(
form
,
0
,
0
,
1
,
-
1
);
// ROW 0
// ~~~~~
vtkSMProperty
*
prop
=
0
;
// refresh button for updating times/fields
...
...
@@ -107,10 +110,16 @@ pqPV3FoamReaderPanel::pqPV3FoamReaderPanel
);
}
// ROW 1
// ~~~~~
QFrame
*
hline1
=
new
QFrame
(
this
);
hline1
->
setFrameStyle
(
QFrame
::
HLine
|
QFrame
::
Sunken
);
form
->
addWidget
(
hline1
,
1
,
0
,
1
,
3
);
// ROW 2
// ~~~~~
// checkbox for caching mesh
if
((
prop
=
this
->
proxy
()
->
GetProperty
(
"UiCacheMesh"
))
!=
0
)
{
...
...
@@ -137,35 +146,38 @@ pqPV3FoamReaderPanel::pqPV3FoamReaderPanel
);
}
// cell 2,1 empty
// checkbox for patch names
if
((
prop
=
this
->
proxy
()
->
GetProperty
(
"UiShowPatchNames"
))
!=
0
)
// ROW 3
// ~~~~~
// checkbox for include sets
if
((
prop
=
this
->
proxy
()
->
GetProperty
(
"UiIncludeSets"
))
!=
0
)
{
// immediate update on the Server Manager side
prop
->
SetImmediateUpdate
(
true
);
ShowPatchName
s_
=
new
QCheckBox
(
"
Patch Name
s"
);
ShowPatchName
s_
->
setChecked
IncludeSet
s_
=
new
QCheckBox
(
"
Include Set
s"
);
IncludeSet
s_
->
setChecked
(
vtkSMIntVectorProperty
::
SafeDownCast
(
prop
)
->
GetElement
(
0
)
);
ShowPatchName
s_
->
setToolTip
IncludeSet
s_
->
setToolTip
(
"S
how patch names in render window
."
"S
earch the polyMesh/sets/ directory
."
);
// row/col
0,1
form
->
addWidget
(
ShowPatchName
s_
,
2
,
1
,
Qt
::
AlignLeft
);
// row/col
1,0
form
->
addWidget
(
IncludeSet
s_
,
3
,
0
,
Qt
::
AlignLeft
);
connect
(
ShowPatchName
s_
,
IncludeSet
s_
,
SIGNAL
(
stateChanged
(
int
)),
this
,
SLOT
(
ShowPatchName
sToggled
())
SLOT
(
IncludeSet
sToggled
())
);
}
// checkbox for Groups Only
if
((
prop
=
this
->
proxy
()
->
GetProperty
(
"UiShowGroupsOnly"
))
!=
0
)
{
...
...
@@ -183,7 +195,7 @@ pqPV3FoamReaderPanel::pqPV3FoamReaderPanel
);
// row/col 2, 2
form
->
addWidget
(
ShowGroupsOnly_
,
2
,
2
,
Qt
::
AlignLeft
);
form
->
addWidget
(
ShowGroupsOnly_
,
3
,
1
,
Qt
::
AlignLeft
);
connect
(
ShowGroupsOnly_
,
...
...
@@ -194,62 +206,74 @@ pqPV3FoamReaderPanel::pqPV3FoamReaderPanel
}
// checkbox for include sets
if
((
prop
=
this
->
proxy
()
->
GetProperty
(
"UiIncludeSets"
))
!=
0
)
// ROW 4
// ~~~~~
// checkbox for include zones
if
((
prop
=
this
->
proxy
()
->
GetProperty
(
"UiIncludeZones"
))
!=
0
)
{
// immediate update on the Server Manager side
prop
->
SetImmediateUpdate
(
true
);
Include
Set
s_
=
new
QCheckBox
(
"Include
Set
s"
);
Include
Set
s_
->
setChecked
Include
Zone
s_
=
new
QCheckBox
(
"Include
Zone
s"
);
Include
Zone
s_
->
setChecked
(
vtkSMIntVectorProperty
::
SafeDownCast
(
prop
)
->
GetElement
(
0
)
);
Include
Set
s_
->
setToolTip
Include
Zone
s_
->
setToolTip
(
"Search the polyMesh/sets/ directory."
"ZoneMesh information is used to find {cell,face,point}Zones. "
"The polyMesh/ directory is only checked on startup."
);
// row/col 1,
0
form
->
addWidget
(
Include
Set
s_
,
3
,
0
,
Qt
::
AlignLeft
);
// row/col 1,
1
form
->
addWidget
(
Include
Zone
s_
,
4
,
0
,
Qt
::
AlignLeft
);
connect
(
Include
Set
s_
,
Include
Zone
s_
,
SIGNAL
(
stateChanged
(
int
)),
this
,
SLOT
(
Include
Set
sToggled
())
SLOT
(
Include
Zone
sToggled
())
);
}
// checkbox for include zones
if
((
prop
=
this
->
proxy
()
->
GetProperty
(
"UiIncludeZones"
))
!=
0
)
// checkbox for patch names
if
((
prop
=
this
->
proxy
()
->
GetProperty
(
"UiShowPatchNames"
))
!=
0
)
{
// immediate update on the Server Manager side
prop
->
SetImmediateUpdate
(
true
);
IncludeZon
es_
=
new
QCheckBox
(
"
Include Zon
es"
);
IncludeZon
es_
->
setChecked
ShowPatchNam
es_
=
new
QCheckBox
(
"
Patch Nam
es"
);
ShowPatchNam
es_
->
setChecked
(
vtkSMIntVectorProperty
::
SafeDownCast
(
prop
)
->
GetElement
(
0
)
);
IncludeZon
es_
->
setToolTip
ShowPatchNam
es_
->
setToolTip
(
"ZoneMesh information is used to find {cell,face,point}Zones. "
"The polyMesh/ directory is only checked on startup."
"Show patch names in render window."
);
// row/col
1
,1
form
->
addWidget
(
IncludeZon
es_
,
3
,
1
,
Qt
::
AlignLeft
);
// row/col
0
,1
form
->
addWidget
(
ShowPatchNam
es_
,
4
,
1
,
Qt
::
AlignLeft
);
connect
(
IncludeZon
es_
,
ShowPatchNam
es_
,
SIGNAL
(
stateChanged
(
int
)),
this
,
SLOT
(
IncludeZon
esToggled
())
SLOT
(
ShowPatchNam
esToggled
())
);
}
// ROW 5
// ~~~~~
QFrame
*
hline2
=
new
QFrame
(
this
);
hline2
->
setFrameStyle
(
QFrame
::
HLine
|
QFrame
::
Sunken
);
form
->
addWidget
(
hline2
,
5
,
0
,
1
,
3
);
// ROW 6
// ~~~~~
// checkbox for vol field interpolation
if
((
prop
=
this
->
proxy
()
->
GetProperty
(
"UiInterpolateVolFields"
))
!=
0
)
{
...
...
@@ -267,7 +291,7 @@ pqPV3FoamReaderPanel::pqPV3FoamReaderPanel
);
// row/col 1,1
form
->
addWidget
(
InterpolateVolFields_
,
4
,
0
,
Qt
::
AlignLeft
);
form
->
addWidget
(
InterpolateVolFields_
,
6
,
0
,
Qt
::
AlignLeft
);
connect
(
InterpolateVolFields_
,
...
...
@@ -294,7 +318,7 @@ pqPV3FoamReaderPanel::pqPV3FoamReaderPanel
);
// row/col 1,1
form
->
addWidget
(
ExtrapolatePatches_
,
4
,
1
,
Qt
::
AlignLeft
);
form
->
addWidget
(
ExtrapolatePatches_
,
6
,
1
,
Qt
::
AlignLeft
);
connect
(
ExtrapolatePatches_
,
...
...
@@ -304,9 +328,12 @@ pqPV3FoamReaderPanel::pqPV3FoamReaderPanel
);
}
QFrame
*
hline2
=
new
QFrame
(
this
);
hline2
->
setFrameStyle
(
QFrame
::
HLine
|
QFrame
::
Sunken
);
form
->
addWidget
(
hline2
,
5
,
0
,
1
,
3
);
// ROW 7
// ~~~~~
QFrame
*
hline3
=
new
QFrame
(
this
);
hline3
->
setFrameStyle
(
QFrame
::
HLine
|
QFrame
::
Sunken
);
form
->
addWidget
(
hline3
,
7
,
0
,
1
,
3
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment