Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

panda/src/ribdisplay/ribGraphicsPipe.cxx

Go to the documentation of this file.
00001 // Filename: ribGraphicsPipe.cxx
00002 // Created by:  drose (15Feb99)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) 2001, Disney Enterprises, Inc.  All rights reserved
00008 //
00009 // All use of this software is subject to the terms of the Panda 3d
00010 // Software license.  You should have received a copy of this license
00011 // along with this source code; you will also find a current copy of
00012 // the license at http://www.panda3d.org/license.txt .
00013 //
00014 // To contact the maintainers of this program write to
00015 // panda3d@yahoogroups.com .
00016 //
00017 ////////////////////////////////////////////////////////////////////
00018 
00019 #include "ribGraphicsPipe.h"
00020 #include "ribGraphicsWindow.h"
00021 #include "config_ribdisplay.h"
00022 
00023 TypeHandle RIBGraphicsPipe::_type_handle;
00024 
00025 ////////////////////////////////////////////////////////////////////
00026 //     Function: RIBGraphicsPipe::get_window_type
00027 //       Access: Public, Virtual
00028 //  Description: Returns the TypeHandle of the kind of window
00029 //               preferred by this kind of pipe.
00030 ////////////////////////////////////////////////////////////////////
00031 TypeHandle RIBGraphicsPipe::
00032 get_window_type() const {
00033   return RIBGraphicsWindow::get_class_type();
00034 }
00035 
00036 
00037 GraphicsPipe *RIBGraphicsPipe::
00038 make_RIBGraphicsPipe(const FactoryParams &params) {
00039   GraphicsPipe::PipeSpec *pipe_param;
00040   if (!get_param_into(pipe_param, params)) {
00041     return new RIBGraphicsPipe(PipeSpecifier());
00042   } else {
00043     return new RIBGraphicsPipe(pipe_param->get_specifier());
00044   }
00045 }
00046 
00047 TypeHandle RIBGraphicsPipe::get_class_type(void) {
00048   return _type_handle;
00049 }
00050 
00051 void RIBGraphicsPipe::init_type(void) {
00052   NoninteractiveGraphicsPipe::init_type();
00053   register_type(_type_handle, "RIBGraphicsPipe",
00054                 NoninteractiveGraphicsPipe::get_class_type());
00055 }
00056 
00057 TypeHandle RIBGraphicsPipe::get_type(void) const {
00058   return get_class_type();
00059 }

Generated on Fri May 2 00:43:50 2003 for Panda by doxygen1.3