Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

sogldriverdatabase(3) [debian man page]

SoGLDriverDatabase(3)						       Coin						     SoGLDriverDatabase(3)

NAME
SoGLDriverDatabase - The SoGLDriverDatabase class is used for looking up broken/slow features in OpenGL drivers. SYNOPSIS
#include <Inventor/misc/SoGLDriverDatabase.h> Static Public Member Functions static SbBool isSupported (const cc_glglue *context, const SbName &feature) static SbBool isBroken (const cc_glglue *context, const SbName &feature) static SbBool isSlow (const cc_glglue *context, const SbName &feature) static SbBool isFast (const cc_glglue *context, const SbName &feature) static SbName getComment (const cc_glglue *context, const SbName &feature) static void loadFromBuffer (const char *buffer) static void loadFromFile (const SbName &filename) static void addBuffer (const char *buffer) static void addFile (const SbName &filename) static void addFeature (const SbName &feature, const SbName &comment) static void init (void) Detailed Description The SoGLDriverDatabase class is used for looking up broken/slow features in OpenGL drivers. Coin will maintain a database of drivers where we have found problems with certain features, even if the OpenGL driver claims to support it. This is an effort to avoid application or operating system crashes when Coin attempts to use a specific feature. Using this database we can either disable this feature, or find another way to handle it for broken drivers. Member Function Documentation SbBool SoGLDriverDatabase::isSupported (const cc_glglue *context, const SbName &feature) [static] Convenience function which checks whether feature is suppported for context. If feature is an OpenGL extension, it checks if it's actually supported by the driver, and then calls SoGLDriverDatabase::isBroken() to check if the feature is broken for context. SbBool SoGLDriverDatabase::isBroken (const cc_glglue *context, const SbName &feature) [static] Checks the driver database to see if feature is tagged as broken. SbBool SoGLDriverDatabase::isSlow (const cc_glglue *context, const SbName &feature) [static] Checks the driver database to see if feature is tagged as being slow. SbBool SoGLDriverDatabase::isFast (const cc_glglue *context, const SbName &feature) [static] Checks the driver database to see if feature is tagged as fast. SbName SoGLDriverDatabase::getComment (const cc_glglue *context, const SbName &feature) [static] Get the comment for feature in context, returns 'undefined' if the feature has no entry. Provides extensibility to the database. void SoGLDriverDatabase::loadFromBuffer (const char *buffer) [static] Load the driver database from buffer void SoGLDriverDatabase::loadFromFile (const SbName &filename) [static] Load the driver database from the file specified in filename void SoGLDriverDatabase::addBuffer (const char *buffer) [static] Add the XML data in buffer to the driver database void SoGLDriverDatabase::addFile (const SbName &filename) [static] Add the XML data in filename to the driver database void SoGLDriverDatabase::addFeature (const SbName &feature, const SbName &comment) [static] Add a feature to the driver database Author Generated automatically by Doxygen for Coin from the source code. Version 3.1.3 Wed May 23 2012 SoGLDriverDatabase(3)

Check Out this Related Man Page

SoProto(3)							       Coin								SoProto(3)

NAME
SoProto - The SoProto class handles PROTO definitions. SYNOPSIS
#include <Inventor/misc/SoProto.h> Inherits SoNode. Public Member Functions SoProto (const SbBool externproto=FALSE) virtual SoType getTypeId (void) const SoProtoInstance * createProtoInstance (void) void addISReference (SoNode *container, const SbName &fieldname, const SbName &interfacename) SbName findISReference (const SoFieldContainer *container, const SbName &fieldname) void addReference (const SbName &name, SoBase *base) void removeReference (const SbName &name) SoBase * findReference (const SbName &name) const void addRoute (const SbName &fromnode, const SbName &fromfield, const SbName &tonode, const SbName &tofield) SbName getProtoName (void) const virtual SbBool readInstance (SoInput *input, unsigned short flags) virtual void write (SoWriteAction *action) Static Public Member Functions static void setFetchExternProtoCallback (SoFetchExternProtoCB *cb, void *closure) static SoType getClassTypeId (void) static SoProto * findProto (const SbName &name) static void initClass (void) Protected Member Functions virtual ~SoProto () virtual void destroy (void) Additional Inherited Members Detailed Description The SoProto class handles PROTO definitions. SoProto and SoProtoInstance are mostly internal classes. They're designed to read and handle VRML97 PROTOs. However, it's possible to define your protos in C++. You must define your proto in a char array, and read that char array using SoInput::setBuffer() and SoDB::readAllVRML(). Example: char myproto[] = '#VRML V2.0 utf80 'PROTO ColorCube [0 ' field SFColor color 1 1 10 ' field SFVec3f size 1 1 10 ']0 '{0 ' Shape {0 ' appearance Appearance {0 ' material Material {0 ' diffuseColor IS color0 ' }0 ' }0 ' geometry Box { size IS size }0 ' }0 '}0 'ColorCube { color 1 0 0 size 2 1 1 }0; SoInput in; in.setBuffer((void*) myproto, strlen(myproto)); SoVRMLGroup * protoroot = SoDB::readAllVRML(&in); Now you can create new instances of the ColorCube proto using SoProto::findProto() and SoProto::createProtoInstance(). If you want to insert proto instances into your scene graph, you should insert the node returned from SoProtoInstance::getRootNode(). See http://www.web3d.org/technicalinfo/specifications/ISO-IEC-14772-IS-VRML97WithAmendment1/part1/concepts.html#4.8 for more information about PROTOs in VRML97. Constructor &; Destructor Documentation SoProto::SoProto (const SbBoolexternproto = FALSE) Constructor. SoProto::~SoProto () [protected], [virtual] Destructor. Member Function Documentation SoType SoProto::getTypeId (void) const [virtual] Returns the type identification of an object derived from a class inheriting SoBase. This is used for run-time type checking and 'downward' casting. Usage example: void foo(SoNode * node) { if (node->getTypeId() == SoFile::getClassTypeId()) { SoFile * filenode = (SoFile *)node; // safe downward cast, knows the type } } For application programmers wanting to extend the library with new nodes, engines, nodekits, draggers or others: this method needs to be overridden in all subclasses. This is typically done as part of setting up the full type system for extension classes, which is usually accomplished by using the pre-defined macros available through for instance Inventor/nodes/SoSubNode.h (SO_NODE_INIT_CLASS and SO_NODE_CONSTRUCTOR for node classes), Inventor/engines/SoSubEngine.h (for engine classes) and so on. For more information on writing Coin extensions, see the class documentation of the toplevel superclasses for the various class groups. Implements SoBase. SoType SoProto::getClassTypeId (void) [static] This static method returns the SoType object associated with objects of this class. Reimplemented from SoNode. SoProto * SoProto::findProto (const SbName &name) [static] Returns the PROTO definition named name or NULL if not found. void SoProto::initClass (void) [static] Sets up initialization for data common to all instances of this class, like submitting necessary information to the Coin type system. Reimplemented from SoNode. SoProtoInstance * SoProto::createProtoInstance (void) Creates an instance of the PROTO. void SoProto::addISReference (SoNode *container, const SbName &fieldname, const SbName &interfacename) Adds an IS reference for this PROTO definition. SbName SoProto::findISReference (const SoFieldContainer *container, const SbName &fieldname) If container is a PROTO definition node with an IS interface field named fieldname, return the interface name, otherwise return an empty SbName. void SoProto::addReference (const SbName &name, SoBase *base) Adds a reference for this PROTO definition. void SoProto::removeReference (const SbName &name) Removes a reference for this PROTO definition. SoBase * SoProto::findReference (const SbName &name) const Finds a reference for this PROTO definition. void SoProto::addRoute (const SbName &fromnode, const SbName &fromfield, const SbName &tonode, const SbName &tofield) Adds a ROUTE for this PROTO definition. SbName SoProto::getProtoName (void) const Returns the PROTO name. SbBool SoProto::readInstance (SoInput *in, unsigned shortflags) [virtual] This method is mainly intended for internal use during file import operations. It reads a definition of an instance from the input stream in. The input stream state points to the start of a serialized / persistant representation of an instance of this class type. TRUE or FALSE is returned, depending on if the instantiation and configuration of the new object of this class type went ok or not. The import process should be robust and handle corrupted input streams by returning FALSE. flags is used internally during binary import when reading user extension nodes, group nodes or engines. Reimplemented from SoNode. void SoProto::write (SoWriteAction *action) [virtual] Action method for SoWriteAction. Writes out a node object, and any connected nodes, engines etc, if necessary. Reimplemented from SoNode. void SoProto::destroy (void) [protected], [virtual] Cleans up all hanging references to and from this instance, and then commits suicide. Called automatically when the reference count goes to zero. Reimplemented from SoBase. Author Generated automatically by Doxygen for Coin from the source code. Version 3.1.3 Wed May 23 2012 SoProto(3)
Man Page