25 std::string category =
"ContourModelSet File";
47 std::ofstream outStream;
49 if (this->GetOutputStream())
51 out = this->GetOutputStream();
55 outStream.open(this->GetOutputLocation().c_str());
74 for (
int i = 0; i < contourModelSet->GetSize(); ++i)
ContourModel is a structure of linked vertices defining a contour in 3D space. The vertices are store...
virtual void SetInput(const BaseData *data) override
Set the input data for writing.
virtual ~ContourModelSetWriter()
The CustomMimeType class represents a custom mime-type which may be registered as a service object...
virtual void SetOutputStream(const std::string &location, std::ostream *os) override
Set an output stream for writing.
virtual void Write() override
Write the base data to the specified location or output stream.
static const char * GetStaticNameOfClass()
void AddExtension(const std::string &extension)
virtual mitk::ContourModelSetWriter * Clone() const override
void SetCategory(const std::string &category)
virtual void Write() override
Write the base data to the specified location or output stream.
us::ServiceRegistration< IFileWriter > RegisterService(us::ModuleContext *context=us::GetModuleContext())
XML-based writer for mitk::ContourModelSet.
void SetMimeType(const CustomMimeType &mimeType)
Base class for writing mitk::BaseData objects to files or streams.
void SetDescription(const std::string &description)
Sets a human readable description of this writer.