Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openstructure
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Contributor analytics
Repository 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
schwede
openstructure
Commits
865fea2a
Commit
865fea2a
authored
14 years ago
by
Marco Biasini
Browse files
Options
Downloads
Patches
Plain Diff
some more exports for gfx-related stuff
parent
c0581093
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
modules/gfx/pymod/export_gfx_node.cc
+15
-0
15 additions, 0 deletions
modules/gfx/pymod/export_gfx_node.cc
modules/gfx/pymod/export_scene.cc
+1
-0
1 addition, 0 deletions
modules/gfx/pymod/export_scene.cc
modules/gui/pymod/export_tool.cc
+0
-4
0 additions, 4 deletions
modules/gui/pymod/export_tool.cc
with
16 additions
and
4 deletions
modules/gfx/pymod/export_gfx_node.cc
+
15
−
0
View file @
865fea2a
...
...
@@ -17,12 +17,20 @@
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
//------------------------------------------------------------------------------
#include
<boost/python.hpp>
#include
<boost/python/suite/indexing/vector_indexing_suite.hpp>
using
namespace
boost
::
python
;
#include
<ost/export_helper/vector.hh>
#include
<ost/gfx/gfx_node.hh>
using
namespace
ost
;
using
namespace
ost
::
gfx
;
const
GfxNodeVector
&
(
GfxNode
::*
get_children
)()
const
=&
GfxNode
::
GetChildren
;
void
export_GfxNode
()
{
void
(
GfxNode
::*
node_add1
)(
GfxObjP
)
=
&
GfxNode
::
Add
;
...
...
@@ -31,6 +39,10 @@ void export_GfxNode()
void
(
GfxNode
::*
node_rem2
)(
GfxNodeP
)
=
&
GfxNode
::
Remove
;
void
(
GfxNode
::*
node_rem3
)(
const
String
&
)
=
&
GfxNode
::
Remove
;
class_
<
GfxNodeVector
>
(
"GfxNodeList"
,
init
<>
())
.
def
(
vector_indexing_suite
<
GfxNodeVector
,
true
>
())
.
def
(
ost
::
VectorAdditions
<
GfxNodeVector
>
())
;
class_
<
GfxNode
,
GfxNodeP
,
boost
::
noncopyable
>
(
"GfxNode"
,
init
<
const
String
&>
())
.
def
(
"GetName"
,
&
GfxNode
::
GetName
)
...
...
@@ -43,5 +55,8 @@ void export_GfxNode()
.
add_property
(
"name"
,
&
GfxNode
::
GetName
)
.
def
(
"Remove"
,
node_rem2
)
.
def
(
"Remove"
,
node_rem3
)
.
add_property
(
"parent"
,
&
GfxNode
::
GetParent
)
.
add_property
(
"children"
,
make_function
(
get_children
,
return_value_policy
<
copy_const_reference
>
()))
;
}
This diff is collapsed.
Click to expand it.
modules/gfx/pymod/export_scene.cc
+
1
−
0
View file @
865fea2a
...
...
@@ -182,6 +182,7 @@ void export_Scene()
.
def
(
"StopOffscreenMode"
,
&
Scene
::
StopOffscreenMode
)
.
def
(
"SetShadingMode"
,
&
Scene
::
SetShadingMode
)
.
def
(
"SetBeacon"
,
&
Scene
::
SetBeacon
)
.
add_property
(
"root_node"
,
&
Scene
::
GetRootNode
)
.
def
(
"SetBeaconOff"
,
&
Scene
::
SetBeaconOff
)
.
def
(
"__getitem__"
,
scene_getitem
)
;
...
...
This diff is collapsed.
Click to expand it.
modules/gui/pymod/export_tool.cc
+
0
−
4
View file @
865fea2a
...
...
@@ -250,9 +250,5 @@ void export_Tool()
.
def
(
"GetQObject"
,
&
get_py_qobject
<
ToolOptionsWin
>
)
.
add_property
(
"qobject"
,
&
get_py_qobject
<
ToolOptionsWin
>
)
;
class_
<
gfx
::
NodePtrList
>
(
"NodePtrList"
,
init
<>
())
.
def
(
vector_indexing_suite
<
gfx
::
NodePtrList
,
true
>
())
;
}
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