Initial cut of zlib based compress/uncompress plugin
This commit is contained in:
parent
df0fcbdf9b
commit
ab3ecd129d
@ -295,6 +295,7 @@ FIND_PACKAGE(Performer)
|
|||||||
FIND_PACKAGE(ZLIB)
|
FIND_PACKAGE(ZLIB)
|
||||||
FIND_PACKAGE(GDAL)
|
FIND_PACKAGE(GDAL)
|
||||||
FIND_PACKAGE(CURL)
|
FIND_PACKAGE(CURL)
|
||||||
|
FIND_PACKAGE(ZLIB)
|
||||||
FIND_PACKAGE(ITK)
|
FIND_PACKAGE(ITK)
|
||||||
FIND_PACKAGE(OurDCMTK)
|
FIND_PACKAGE(OurDCMTK)
|
||||||
|
|
||||||
|
@ -100,6 +100,10 @@ IF(CURL_FOUND)
|
|||||||
ADD_SUBDIRECTORY(curl)
|
ADD_SUBDIRECTORY(curl)
|
||||||
ENDIF(CURL_FOUND)
|
ENDIF(CURL_FOUND)
|
||||||
|
|
||||||
|
IF(ZLIB_FOUND)
|
||||||
|
ADD_SUBDIRECTORY(gz)
|
||||||
|
ENDIF(ZLIB_FOUND)
|
||||||
|
|
||||||
############################################################
|
############################################################
|
||||||
#
|
#
|
||||||
# 3D Image plugins
|
# 3D Image plugins
|
||||||
|
@ -181,7 +181,7 @@ class OSGReaderWriter : public ReaderWriter
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual WriteResult writeObject(const Object& obj,const std::string& fileName, const osgDB::ReaderWriter::Options* options) const
|
virtual WriteResult writeObject(const Object& obj, const std::string& fileName, const osgDB::ReaderWriter::Options* options) const
|
||||||
{
|
{
|
||||||
std::string ext = osgDB::getLowerCaseFileExtension(fileName);
|
std::string ext = osgDB::getLowerCaseFileExtension(fileName);
|
||||||
if (!acceptsExtension(ext)) return WriteResult::FILE_NOT_HANDLED;
|
if (!acceptsExtension(ext)) return WriteResult::FILE_NOT_HANDLED;
|
||||||
@ -224,7 +224,7 @@ class OSGReaderWriter : public ReaderWriter
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
virtual WriteResult writeNode(const Node& node,const std::string& fileName, const osgDB::ReaderWriter::Options* options) const
|
virtual WriteResult writeNode(const Node& node, const std::string& fileName, const osgDB::ReaderWriter::Options* options) const
|
||||||
{
|
{
|
||||||
std::string ext = getFileExtension(fileName);
|
std::string ext = getFileExtension(fileName);
|
||||||
if (!acceptsExtension(ext)) return WriteResult::FILE_NOT_HANDLED;
|
if (!acceptsExtension(ext)) return WriteResult::FILE_NOT_HANDLED;
|
||||||
@ -246,7 +246,7 @@ class OSGReaderWriter : public ReaderWriter
|
|||||||
return WriteResult("Unable to open file for output");
|
return WriteResult("Unable to open file for output");
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual WriteResult writeNode(const Node& node,std::ostream& fout, const osgDB::ReaderWriter::Options* options) const
|
virtual WriteResult writeNode(const Node& node, std::ostream& fout, const osgDB::ReaderWriter::Options* options) const
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user