Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
CAMP
campvis-public
Commits
19ef9d29
Commit
19ef9d29
authored
Feb 18, 2015
by
Christian Schulte zu Berge
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Introducing CudaConfidenceMapsWorkflow
parent
a4850bbc
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
152 additions
and
0 deletions
+152
-0
modules/cudaconfidencemaps/pipelines/cudaconfidencemapsdemo.cpp
...s/cudaconfidencemaps/pipelines/cudaconfidencemapsdemo.cpp
+3
-0
modules/cudaconfidencemaps/pipelines/cudaconfidencemapsworkflow.cpp
...daconfidencemaps/pipelines/cudaconfidencemapsworkflow.cpp
+77
-0
modules/cudaconfidencemaps/pipelines/cudaconfidencemapsworkflow.h
...cudaconfidencemaps/pipelines/cudaconfidencemapsworkflow.h
+72
-0
No files found.
modules/cudaconfidencemaps/pipelines/cudaconfidencemapsdemo.cpp
View file @
19ef9d29
...
...
@@ -111,6 +111,9 @@ namespace campvis {
setAdvancedPropertiesVisibility
(
false
);
_canvasSize
.
setVisible
(
false
);
_renderTargetID
.
setVisible
(
false
);
// Reserve memory for statistics, so that (hopefully) no reallocation happens at runtime
_statistics
.
reserve
(
1000
);
_objectCreationTime
=
tbb
::
tick_count
::
now
();
...
...
modules/cudaconfidencemaps/pipelines/cudaconfidencemapsworkflow.cpp
0 → 100644
View file @
19ef9d29
// ================================================================================================
//
// This file is part of the CAMPVis Software Framework.
//
// If not explicitly stated otherwise: Copyright (C) 2012-2014, all rights reserved,
// Christian Schulte zu Berge <christian.szb@in.tum.de>
// Chair for Computer Aided Medical Procedures
// Technische Universitaet Muenchen
// Boltzmannstr. 3, 85748 Garching b. Muenchen, Germany
//
// For a full list of authors and contributors, please refer to the file "AUTHORS.txt".
//
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
// except in compliance with the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software distributed under the
// License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
// either express or implied. See the License for the specific language governing permissions
// and limitations under the License.
//
// ================================================================================================
#include "cudaconfidencemapsworkflow.h"
namespace
campvis
{
CudaConfidenceMapsWorkflow
::
CudaConfidenceMapsWorkflow
()
:
AbstractWorkflow
(
"CudaConfidenceMapsWorkflow"
)
,
p_pipelineProperties
(
"PipelineProperties"
,
"Main Settings"
)
,
_demoPipeline
(
nullptr
)
{
_demoPipeline
=
new
CudaConfidenceMapsDemo
(
_dataContainer
);
p_pipelineProperties
.
addPropertyCollection
(
*
_demoPipeline
);
typedef
std
::
vector
<
std
::
pair
<
AbstractPipeline
*
,
bool
>
>
VisVec
;
typedef
std
::
vector
<
AbstractProperty
*>
PropVec
;
VisVec
vvl
;
vvl
.
push_back
(
std
::
make_pair
(
_demoPipeline
,
true
));
PropVec
pvl
;
pvl
.
push_back
(
&
p_pipelineProperties
);
addStage
(
MAIN_STAGE
,
"Real-time Confidence Maps"
,
vvl
,
pvl
);
}
CudaConfidenceMapsWorkflow
::~
CudaConfidenceMapsWorkflow
()
{
}
std
::
vector
<
AbstractPipeline
*>
CudaConfidenceMapsWorkflow
::
getPipelines
()
{
std
::
vector
<
AbstractPipeline
*>
toReturn
;
toReturn
.
push_back
(
_demoPipeline
);
return
toReturn
;
}
void
CudaConfidenceMapsWorkflow
::
init
()
{
// nothing special to do here apart from calling base method
AbstractWorkflow
::
init
();
}
void
CudaConfidenceMapsWorkflow
::
deinit
()
{
}
bool
CudaConfidenceMapsWorkflow
::
isStageAvailable
(
int
stage
)
const
{
switch
(
stage
)
{
case
MAIN_STAGE
:
return
true
;
default:
return
false
;
}
}
}
modules/cudaconfidencemaps/pipelines/cudaconfidencemapsworkflow.h
0 → 100644
View file @
19ef9d29
// ================================================================================================
//
// This file is part of the CAMPVis Software Framework.
//
// If not explicitly stated otherwise: Copyright (C) 2012-2014, all rights reserved,
// Christian Schulte zu Berge <christian.szb@in.tum.de>
// Chair for Computer Aided Medical Procedures
// Technische Universitaet Muenchen
// Boltzmannstr. 3, 85748 Garching b. Muenchen, Germany
//
// For a full list of authors and contributors, please refer to the file "AUTHORS.txt".
//
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
// except in compliance with the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software distributed under the
// License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
// either express or implied. See the License for the specific language governing permissions
// and limitations under the License.
//
// ================================================================================================
#ifndef CUDACONFIDENCEMAPSWORKFLOW_H__
#define CUDACONFIDENCEMAPSWORKFLOW_H__
#include "core/pipeline/abstractworkflow.h"
#include "modules/cudaconfidencemaps/pipelines/cudaconfidencemapsdemo.h"
#include "modules/pipelinefactory.h"
namespace
campvis
{
class
CudaConfidenceMapsWorkflow
:
public
AbstractWorkflow
{
public:
enum
Stages
{
MAIN_STAGE
};
/**
* Constructor
*/
CudaConfidenceMapsWorkflow
();
/**
* Virtual Destructor
**/
virtual
~
CudaConfidenceMapsWorkflow
();
/// \see AbstractWorkflow::getPipelines()
virtual
std
::
vector
<
AbstractPipeline
*>
getPipelines
();
/// \see AbstractWorkflow::init()
virtual
void
init
();
/// \see AbstractWorkflow::deinit()
virtual
void
deinit
();
/// \see AbstractWorkflow::isStageAvailable()
virtual
bool
isStageAvailable
(
int
stage
)
const
;
/// \see AbstractWorkflow::getName()
virtual
const
std
::
string
getName
()
const
{
return
getId
();
};
static
const
std
::
string
getId
()
{
return
"CudaConfidenceMapsWorkflow"
;
};
protected:
MetaProperty
p_pipelineProperties
;
CudaConfidenceMapsDemo
*
_demoPipeline
;
};
template
class
WorkflowRegistrar
<
CudaConfidenceMapsWorkflow
>;
}
#endif // CUDACONFIDENCEMAPSWORKFLOW_H__
Write
Preview
Markdown
is supported
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