Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
GeoModel
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
GeoModelDev
GeoModel
Commits
025f675a
Commit
025f675a
authored
1 year ago
by
Riccardo Maria Bianchi
Committed by
Johannes Junggeburth
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Add getters to retrieve number of shapes with the new DB schema
parent
e0245cbe
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!327
New schema for the GeoModel SQLite database and updated I/O
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
GeoModelIO/GeoModelWrite/GeoModelWrite/WriteGeoModel.h
+18
-1
18 additions, 1 deletion
GeoModelIO/GeoModelWrite/GeoModelWrite/WriteGeoModel.h
with
18 additions
and
1 deletion
GeoModelIO/GeoModelWrite/GeoModelWrite/WriteGeoModel.h
+
18
−
1
View file @
025f675a
...
...
@@ -95,6 +95,7 @@ class WriteGeoModel : public GeoNodeAction {
/// - 0 : Default
/// - 1 : Verbose
/// - 2 : Debug
/// - 3 : Deep Debug
void
setLogLevel
(
unsigned
loglevel
)
{
m_loglevel
=
loglevel
;
};
virtual
void
handlePhysVol
(
...
...
@@ -146,10 +147,26 @@ class WriteGeoModel : public GeoNodeAction {
};
unsigned
long
getNFunctions
()
{
return
m_functions
.
size
();
};
unsigned
long
getNNameTags
()
{
return
m_nameTags
.
size
();
};
unsigned
long
getNShapes
()
{
return
m_shapes
.
size
();
};
unsigned
long
getNChildrenConnections
()
{
return
m_childrenPositions
.
size
();
};
unsigned
long
getNShapes
()
{
return
m_shapes
.
size
();
};
// TODO: to be removed later
unsigned
long
getNShapes_Box
()
{
return
m_shapes_Box
.
size
();
};
unsigned
long
getNShapes_Cons
()
{
return
m_shapes_Cons
.
size
();
};
unsigned
long
getNShapes_Para
()
{
return
m_shapes_Para
.
size
();
};
unsigned
long
getNShapes_Pcon
()
{
return
m_shapes_Pcon
.
size
();
};
unsigned
long
getNShapes_Pgon
()
{
return
m_shapes_Pgon
.
size
();
};
unsigned
long
getNShapes_SimplePolygonBrep
()
{
return
m_shapes_SimplePolygonBrep
.
size
();
};
unsigned
long
getNShapes_Trap
()
{
return
m_shapes_Trap
.
size
();
};
unsigned
long
getNShapes_Trd
()
{
return
m_shapes_Trd
.
size
();
};
unsigned
long
getNShapes_Tube
()
{
return
m_shapes_Tube
.
size
();
};
unsigned
long
getNShapes_Tubs
()
{
return
m_shapes_Tubs
.
size
();
};
unsigned
long
getNShapes_TwistedTrap
()
{
return
m_shapes_TwistedTrap
.
size
();
};
unsigned
long
getNShapes_UnidentifiedShape
()
{
return
m_shapes_UnidentifiedShape
.
size
();
};
unsigned
long
getNShapes_Shift
()
{
return
m_shapes_Shift
.
size
();
};
unsigned
long
getNShapes_Union
()
{
return
m_shapes_Union
.
size
();
};
unsigned
long
getNShapes_Intersection
()
{
return
m_shapes_Intersection
.
size
();
};
unsigned
long
getNShapes_Subtraction
()
{
return
m_shapes_Subtraction
.
size
();
};
private
:
// define copy constructor, needed for the GeoModelAction subclass
...
...
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