Commit 53d285f2 authored by Robert Maynard's avatar Robert Maynard
Browse files

Correct compiation issues detected in MeshOperator.

parent 9032d2fb
...@@ -4,9 +4,10 @@ smtk_operator_xml("${CMAKE_CURRENT_SOURCE_DIR}/MeshOperator.sbt" remusOperatorXM ...@@ -4,9 +4,10 @@ smtk_operator_xml("${CMAKE_CURRENT_SOURCE_DIR}/MeshOperator.sbt" remusOperatorXM
add_library(smtkRemusExt ${remusExtSource}) add_library(smtkRemusExt ${remusExtSource})
target_link_libraries(smtkRemusExt target_link_libraries(smtkRemusExt
PRIVATE LINK_PRIVATE
RemusClient RemusClient
smtkCore smtkCore
${Boost_LIBRARIES}
) )
target_include_directories(smtkRemusExt PRIVATE ${REMUS_INCLUDE_DIRS}) target_include_directories(smtkRemusExt PRIVATE ${REMUS_INCLUDE_DIRS})
......
...@@ -18,6 +18,9 @@ ...@@ -18,6 +18,9 @@
#include "smtk/model/Manager.h" #include "smtk/model/Manager.h"
#include "smtk/model/Model.h" #include "smtk/model/Model.h"
#include "smtk/mesh/Manager.h"
#include "smtk/mesh/Collection.h"
#include "smtk/attribute/Attribute.h" #include "smtk/attribute/Attribute.h"
#include "smtk/attribute/ModelEntityItem.h" #include "smtk/attribute/ModelEntityItem.h"
#include "smtk/attribute/StringItem.h" #include "smtk/attribute/StringItem.h"
...@@ -156,10 +159,12 @@ OperatorResult MeshOperator::operateInternal() ...@@ -156,10 +159,12 @@ OperatorResult MeshOperator::operateInternal()
//now fetch the latest results from the server //now fetch the latest results from the server
remus::proto::JobResult meshMetaData = client.retrieveResults(job); remus::proto::JobResult meshMetaData = client.retrieveResults(job);
smtk::mesh::ManagerPtr meshManager = this->manager()->meshes();
//determine all existing collection //determine all existing collection
typedef std::map< smtk::common::UUID, smtk::mesh::CollectionPtr > CollectionStorage; typedef std::map< smtk::common::UUID, smtk::mesh::CollectionPtr > CollectionStorage;
CollectionStorage existingCollections(this->manager()->collectionBegin(), CollectionStorage existingCollections(meshManager->collectionBegin(),
this->manager()->collectionEnd()); meshManager->collectionEnd());
//parse the job result as json mesh data //parse the job result as json mesh data
cJSON* root = cJSON_Parse(meshMetaData.data()); cJSON* root = cJSON_Parse(meshMetaData.data());
...@@ -176,12 +181,12 @@ OperatorResult MeshOperator::operateInternal() ...@@ -176,12 +181,12 @@ OperatorResult MeshOperator::operateInternal()
// //
// //
// //
for(smtk::mesh::Manager::const_iterator i = this->manager()->collectionBegin(); for(smtk::mesh::Manager::const_iterator i = meshManager->collectionBegin();
i != this->manager()->collectionEnd(); i != meshManager->collectionEnd();
++i) ++i)
{ {
smtk::mesh::CollectionPtr collection = i->second; smtk::mesh::CollectionPtr collection = i->second;
smtk::mesh::UUID collectionUUID = i->first; smtk::common::UUID collectionUUID = i->first;
if( existingCollections.find(collectionUUID) == existingCollections.end()) if( existingCollections.find(collectionUUID) == existingCollections.end())
{ //found a new collection { //found a new collection
std::string location = collection->readLocation(); std::string location = collection->readLocation();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment