HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GEO_IORib Class Reference

#include <GEO_IORib.h>

+ Inheritance diagram for GEO_IORib:

Public Member Functions

 GEO_IORib ()
 
 ~GEO_IORib () override
 
GEO_IOTranslatorduplicate () const override
 This method is used to create a copy of the sub-class. More...
 
const char * formatName () const override
 
int checkExtension (const char *name) override
 
int checkMagicNumber (unsigned magic) override
 
GA_Detail::IOStatus fileSave (const GEO_Detail *gdp, std::ostream &) override
 
GA_Detail::IOStatus fileLoad (GEO_Detail *, UT_IStream &, bool) override
 
void setMBGeo (const GEO_Detail *gdp)
 
void addMBGeo (const GEO_Detail *gdp)
 
void setMBParticle (int onoff)
 
void setOutputPrimGroup (const GA_PrimitiveGroup *grp)
 
void setVersion (const char *renderer, int major=3, int minor=6)
 
void setForIFD (int onoff=1)
 
void setCurveBasis (const char *basis)
 
void setPolySubdivide (int on)
 
void setPoints (int on, float size=1)
 
void setShutterSpeed (float shutter=1)
 
- Public Member Functions inherited from GEO_IOTranslator
 GEO_IOTranslator ()
 
virtual ~GEO_IOTranslator ()
 
virtual void getFileExtensions (UT_StringArray &extensions) const
 
virtual bool fileStat (const char *filename, GA_Stat &stat, uint level)
 
virtual GA_Detail::IOStatus fileSaveToFile (const GEO_Detail *gdp, const char *filename)
 
void eraseDSODefinition ()
 

Static Public Member Functions

static void outputQuadricAttributes (GEO_IORibPrinter &, const GEO_Primitive *, GA_Size vtx, int dup=4, float pscale=1)
 
static int outputParticleAttributes (GEO_IORibPrinter &out, const GEO_PrimParticle *part, float pscale=1, int dup=1, int allow_N=0)
 
- Static Public Member Functions inherited from GEO_IOTranslator
static const geo_DSODefinitionsdsoDefinitions ()
 Return the list of DSO based translators. More...
 

Additional Inherited Members

- Public Types inherited from GEO_IOTranslator
typedef UT_StringMap
< UT_StringHolder
geo_DSODefinitions
 
- Protected Member Functions inherited from GEO_IOTranslator
bool statJSONStream (UT_IStream &is, GA_Stat &stat, uint level) const
 Stat a .bgeo JSON stream. More...
 

Detailed Description

Definition at line 39 of file GEO_IORib.h.

Constructor & Destructor Documentation

GEO_IORib::GEO_IORib ( )
GEO_IORib::~GEO_IORib ( )
override

Member Function Documentation

void GEO_IORib::addMBGeo ( const GEO_Detail gdp)
int GEO_IORib::checkExtension ( const char *  name)
overridevirtual

Method to check the extension of the name to see if it matches one that we can handle. Returns true if there's a match

Implements GEO_IOTranslator.

int GEO_IORib::checkMagicNumber ( unsigned  magic)
overridevirtual

Method to check if the given magic number matches the magic number. Return true on a match.

Implements GEO_IOTranslator.

GEO_IOTranslator* GEO_IORib::duplicate ( ) const
overridevirtual

This method is used to create a copy of the sub-class.

Implements GEO_IOTranslator.

GA_Detail::IOStatus GEO_IORib::fileLoad ( GEO_Detail gdp,
UT_IStream is,
bool  ate_magic 
)
overridevirtual

Method to load from a stream. If the ate_magic flag is on, then the library has already read the magic number and the loader should not expect it. If the file format doesn't support reading from streams, it can use UT_IStream::isRandomAccessFile to get the raw name to read from. Return false if this translator doesn't support loading.

Implements GEO_IOTranslator.

GA_Detail::IOStatus GEO_IORib::fileSave ( const GEO_Detail gdp,
std::ostream &  os 
)
overridevirtual

Method to save a gdp to another format. Return false if this translator does not support saving.

Implements GEO_IOTranslator.

const char* GEO_IORib::formatName ( ) const
overridevirtual

Returns the label for the geometry format that this translator supports.

Implements GEO_IOTranslator.

static int GEO_IORib::outputParticleAttributes ( GEO_IORibPrinter out,
const GEO_PrimParticle part,
float  pscale = 1,
int  dup = 1,
int  allow_N = 0 
)
static
static void GEO_IORib::outputQuadricAttributes ( GEO_IORibPrinter ,
const GEO_Primitive ,
GA_Size  vtx,
int  dup = 4,
float  pscale = 1 
)
static
void GEO_IORib::setCurveBasis ( const char *  basis)
void GEO_IORib::setForIFD ( int  onoff = 1)
inline

Definition at line 84 of file GEO_IORib.h.

void GEO_IORib::setMBGeo ( const GEO_Detail gdp)
inline

Definition at line 59 of file GEO_IORib.h.

void GEO_IORib::setMBParticle ( int  onoff)
inline

Definition at line 62 of file GEO_IORib.h.

void GEO_IORib::setOutputPrimGroup ( const GA_PrimitiveGroup grp)
inline

Definition at line 63 of file GEO_IORib.h.

void GEO_IORib::setPoints ( int  on,
float  size = 1 
)
void GEO_IORib::setPolySubdivide ( int  on)
void GEO_IORib::setShutterSpeed ( float  shutter = 1)
inline

Definition at line 91 of file GEO_IORib.h.

void GEO_IORib::setVersion ( const char *  renderer,
int  major = 3,
int  minor = 6 
)
inline

Definition at line 76 of file GEO_IORib.h.


The documentation for this class was generated from the following file: