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
030757d0
Commit
030757d0
authored
13 years ago
by
Marco Biasini
Browse files
Options
Downloads
Patches
Plain Diff
gcc 4.1 now also compiles gfx and gui
parent
fc5dee54
Branches
Branches containing commit
Tags
1.1.2
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_obj.cc
+57
-2
57 additions, 2 deletions
modules/gfx/pymod/export_gfx_obj.cc
modules/gfx/pymod/scene_observer_proxy.hh
+0
-2
0 additions, 2 deletions
modules/gfx/pymod/scene_observer_proxy.hh
modules/gui/pymod/export_tool.cc
+0
-5
0 additions, 5 deletions
modules/gui/pymod/export_tool.cc
with
57 additions
and
9 deletions
modules/gfx/pymod/export_gfx_obj.cc
+
57
−
2
View file @
030757d0
...
...
@@ -25,7 +25,6 @@ using namespace ost::gfx;
#include
"color_by_def.hh"
namespace
{
// convenience for python
void
set_mat_amb2
(
GfxObjBase
*
b
,
float
c
)
{
b
->
SetMatAmb
(
Color
(
c
,
c
,
c
,
1.0
));}
void
set_mat_diff2
(
GfxObjBase
*
b
,
float
c
)
{
b
->
SetMatDiff
(
Color
(
c
,
c
,
c
,
1.0
));}
...
...
@@ -58,7 +57,63 @@ namespace {
LOG_INFO
(
"AALines(bool) is deprecated, use SetAALines(bool) instead"
);
b
->
SetAALines
(
f
);
}
}
class
GfxObjWrap
:
public
GfxObj
,
public
wrapper
<
GfxObj
>
{
public:
GfxObjWrap
(
const
std
::
string
&
name
)
:
GfxObj
(
name
)
{}
virtual
geom
::
AlignedCuboid
GetBoundingBox
()
const
{
if
(
override
f
=
this
->
get_override
(
"GetBoundingBox"
))
{
return
f
();
}
else
{
return
GfxObj
::
GetBoundingBox
();
}
}
geom
::
AlignedCuboid
default_GetBoundingBox
()
const
{
return
GfxObj
::
GetBoundingBox
();
}
virtual
void
CustomRenderGL
(
RenderPass
pass
)
{
if
(
override
f
=
this
->
get_override
(
"_CustomRenderGL"
))
{
f
(
pass
);
}
else
{
GfxObj
::
CustomRenderGL
(
pass
);
}
}
void
default_CustomRenderGL
(
RenderPass
pass
)
{
GfxObj
::
CustomRenderGL
(
pass
);
}
virtual
void
CustomPreRenderGL
(
bool
rebuild
)
{
if
(
override
f
=
this
->
get_override
(
"_CustomPreRenderGL"
))
{
f
(
rebuild
);
}
else
{
GfxObj
::
CustomPreRenderGL
(
rebuild
);
}
}
void
default_CustomPreRenderGL
(
bool
rebuild
)
{
GfxObj
::
CustomPreRenderGL
(
rebuild
);
}
virtual
void
InitGL
()
{
if
(
override
f
=
this
->
get_override
(
"_InitGL"
))
{
f
();
}
else
{
GfxObj
::
InitGL
();
}
}
void
default_InitGL
()
{
GfxObj
::
InitGL
();
}
};
void
export_GfxObj
()
{
...
...
This diff is collapsed.
Click to expand it.
modules/gfx/pymod/scene_observer_proxy.hh
+
0
−
2
View file @
030757d0
...
...
@@ -16,7 +16,6 @@
using
namespace
ost
;
using
namespace
ost
::
gfx
;
namespace
{
class
SceneObserverProxy
:
public
SceneObserver
{
public:
...
...
@@ -75,6 +74,5 @@ private:
PyObject
*
self
;
};
}
#endif
This diff is collapsed.
Click to expand it.
modules/gui/pymod/export_tool.cc
+
0
−
5
View file @
030757d0
...
...
@@ -32,7 +32,6 @@ using namespace boost::python;
using
namespace
ost
::
gui
;
using
namespace
ost
;
namespace
{
struct
WrappedTool
:
public
Tool
{
...
...
@@ -81,7 +80,6 @@ struct WrappedTool : public Tool
};
namespace
{
void
tm_add_tool
(
ToolManager
&
tm
,
QPtr
<
WrappedTool
>
tool
)
{
...
...
@@ -127,13 +125,10 @@ object get_delta_wrapper(MouseEvent& me)
return
qpoint_to_bp_object
(
delta
);
}
}
ToolOption
*
(
ToolOptions
::*
get_option_a
)(
const
String
&
,
const
String
&
)
const
=&
ToolOptions
::
GetOption
;
ToolOption
*
(
ToolOptions
::*
get_option_b
)(
const
String
&
)
const
=&
ToolOptions
::
GetOption
;
}
void
export_Tool
()
{
...
...
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