Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
OpenSpace
Commits
28f8248e
Commit
28f8248e
authored
8 years ago
by
Emil Axelsson
Browse files
Options
Download
Email Patches
Plain Diff
Adapt to new interfaces
parent
b047023d
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
include/openspace/util/task.h
+1
-1
include/openspace/util/task.h
modules/kameleonvolume/kameleonvolumemodule.cpp
+2
-2
modules/kameleonvolume/kameleonvolumemodule.cpp
modules/kameleonvolume/kameleonvolumemodule.h
+2
-1
modules/kameleonvolume/kameleonvolumemodule.h
modules/kameleonvolume/tasks/kameleondocumentationtask.cpp
+1
-2
modules/kameleonvolume/tasks/kameleondocumentationtask.cpp
modules/kameleonvolume/tasks/kameleondocumentationtask.h
+1
-1
modules/kameleonvolume/tasks/kameleondocumentationtask.h
modules/kameleonvolume/tasks/kameleonmetadatatojsontask.cpp
+1
-1
modules/kameleonvolume/tasks/kameleonmetadatatojsontask.cpp
modules/kameleonvolume/tasks/kameleonmetadatatojsontask.h
+1
-1
modules/kameleonvolume/tasks/kameleonmetadatatojsontask.h
src/util/task.cpp
+4
-4
src/util/task.cpp
with
13 additions
and
13 deletions
+13
-13
include/openspace/util/task.h
+
1
-
1
View file @
28f8248e
...
...
@@ -39,7 +39,7 @@ public:
virtual
void
perform
(
const
ProgressCallback
&
onProgress
)
=
0
;
virtual
std
::
string
description
()
=
0
;
static
std
::
unique_ptr
<
Task
>
createFromDictionary
(
const
ghoul
::
Dictionary
&
dictionary
);
static
openspace
::
Documentation
documentation
();
static
documentation
::
Documentation
documentation
();
};
}
...
...
This diff is collapsed.
Click to expand it.
modules/kameleonvolume/kameleonvolumemodule.cpp
+
2
-
2
View file @
28f8248e
...
...
@@ -50,9 +50,9 @@ void KameleonVolumeModule::internalInitialize() {
}
std
::
vector
<
Documentation
>
KameleonVolumeModule
::
documentations
()
const
std
::
vector
<
documentation
::
Documentation
>
KameleonVolumeModule
::
documentations
()
const
{
return
std
::
vector
<
Documentation
>
{
KameleonMetadataToJsonTask
::
documentation
()};
return
std
::
vector
<
documentation
::
Documentation
>
{
KameleonMetadataToJsonTask
::
documentation
()};
}
}
// namespace openspace
This diff is collapsed.
Click to expand it.
modules/kameleonvolume/kameleonvolumemodule.h
+
2
-
1
View file @
28f8248e
...
...
@@ -26,6 +26,7 @@
#define __OPENSPACE_MODULE_KAMELEONVOLUME___BASEMODULE___H__
#include
<openspace/util/openspacemodule.h>
#include
<openspace/documentation/documentation.h>
namespace
openspace
{
...
...
@@ -34,7 +35,7 @@ public:
KameleonVolumeModule
();
virtual
~
KameleonVolumeModule
()
=
default
;
void
internalInitialize
()
override
;
std
::
vector
<
Documentation
>
documentations
()
const
override
;
std
::
vector
<
documentation
::
Documentation
>
documentations
()
const
override
;
};
}
// namespace openspace
...
...
This diff is collapsed.
Click to expand it.
modules/kameleonvolume/tasks/kameleondocumentationtask.cpp
+
1
-
2
View file @
28f8248e
...
...
@@ -131,8 +131,7 @@ void KameleonDocumentationTask::perform(const Task::ProgressCallback & progressC
progressCallback
(
1.0
f
);
}
Documentation
KameleonDocumentationTask
::
documentation
()
{
documentation
::
Documentation
KameleonDocumentationTask
::
documentation
()
{
using
namespace
documentation
;
return
{
"KameleonDocumentationTask"
,
...
...
This diff is collapsed.
Click to expand it.
modules/kameleonvolume/tasks/kameleondocumentationtask.h
+
1
-
1
View file @
28f8248e
...
...
@@ -34,7 +34,7 @@ public:
KameleonDocumentationTask
(
const
ghoul
::
Dictionary
&
dictionary
);
std
::
string
description
()
override
;
void
perform
(
const
Task
::
ProgressCallback
&
progressCallback
)
override
;
static
Documentation
documentation
();
static
documentation
::
Documentation
documentation
();
private:
std
::
string
_inputPath
;
std
::
string
_outputPath
;
...
...
This diff is collapsed.
Click to expand it.
modules/kameleonvolume/tasks/kameleonmetadatatojsontask.cpp
+
1
-
1
View file @
28f8248e
...
...
@@ -63,7 +63,7 @@ void KameleonMetadataToJsonTask::perform(const Task::ProgressCallback & progress
progressCallback
(
1.0
f
);
}
Documentation
KameleonMetadataToJsonTask
::
documentation
()
documentation
::
Documentation
KameleonMetadataToJsonTask
::
documentation
()
{
using
namespace
documentation
;
return
{
...
...
This diff is collapsed.
Click to expand it.
modules/kameleonvolume/tasks/kameleonmetadatatojsontask.h
+
1
-
1
View file @
28f8248e
...
...
@@ -34,7 +34,7 @@ public:
KameleonMetadataToJsonTask
(
const
ghoul
::
Dictionary
&
dictionary
);
std
::
string
description
()
override
;
void
perform
(
const
Task
::
ProgressCallback
&
progressCallback
)
override
;
static
Documentation
documentation
();
static
documentation
::
Documentation
documentation
();
private:
std
::
string
_inputPath
;
std
::
string
_outputPath
;
...
...
This diff is collapsed.
Click to expand it.
src/util/task.cpp
+
4
-
4
View file @
28f8248e
...
...
@@ -34,7 +34,7 @@ namespace {
namespace
openspace
{
Documentation
Task
::
documentation
()
{
documentation
::
Documentation
Task
::
documentation
()
{
using
namespace
openspace
::
documentation
;
return
{
"Renderable"
,
...
...
@@ -54,17 +54,17 @@ Documentation Task::documentation() {
}
std
::
unique_ptr
<
Task
>
Task
::
createFromDictionary
(
const
ghoul
::
Dictionary
&
dictionary
)
{
openspace
::
documentation
::
testSpecificationAndThrow
(
Documentation
(),
dictionary
,
"Task"
);
openspace
::
documentation
::
testSpecificationAndThrow
(
documentation
::
Documentation
(),
dictionary
,
"Task"
);
std
::
string
taskType
=
dictionary
.
value
<
std
::
string
>
(
"Type"
);
auto
factory
=
FactoryManager
::
ref
().
factory
<
Task
>
();
Task
*
task
=
factory
->
create
(
taskType
,
dictionary
);
std
::
unique_ptr
<
Task
>
task
=
factory
->
create
(
taskType
,
dictionary
);
if
(
task
==
nullptr
)
{
LERROR
(
"Failed to create a Task object of type '"
<<
taskType
<<
"'"
);
return
nullptr
;
}
return
std
::
unique_ptr
<
Task
>
(
task
);
return
std
::
move
(
task
);
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
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
Menu
Projects
Groups
Snippets
Help