Panda3D

modelLoadRequest.I

00001 // Filename: modelLoadRequest.I
00002 // Created by:  drose (29Aug06)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) Carnegie Mellon University.  All rights reserved.
00008 //
00009 // All use of this software is subject to the terms of the revised BSD
00010 // license.  You should have received a copy of this license along
00011 // with this source code in a file named "LICENSE."
00012 //
00013 ////////////////////////////////////////////////////////////////////
00014 
00015 
00016 ////////////////////////////////////////////////////////////////////
00017 //     Function: ModelLoadRequest::get_filename
00018 //       Access: Published
00019 //  Description: Returns the filename associated with this
00020 //               asynchronous ModelLoadRequest.
00021 ////////////////////////////////////////////////////////////////////
00022 INLINE const Filename &ModelLoadRequest::
00023 get_filename() const {
00024   return _filename;
00025 }
00026 
00027 ////////////////////////////////////////////////////////////////////
00028 //     Function: ModelLoadRequest::get_options
00029 //       Access: Published
00030 //  Description: Returns the LoaderOptions associated with this
00031 //               asynchronous ModelLoadRequest.
00032 ////////////////////////////////////////////////////////////////////
00033 INLINE const LoaderOptions &ModelLoadRequest::
00034 get_options() const {
00035   return _options;
00036 }
00037 
00038 ////////////////////////////////////////////////////////////////////
00039 //     Function: ModelLoadRequest::get_loader
00040 //       Access: Published
00041 //  Description: Returns the Loader object associated with this
00042 //               asynchronous ModelLoadRequest.
00043 ////////////////////////////////////////////////////////////////////
00044 INLINE Loader *ModelLoadRequest::
00045 get_loader() const {
00046   return _loader;
00047 }
00048 
00049 ////////////////////////////////////////////////////////////////////
00050 //     Function: ModelLoadRequest::is_ready
00051 //       Access: Published
00052 //  Description: Returns true if this request has completed, false if
00053 //               it is still pending.  When this returns true, you may
00054 //               retrieve the model loaded by calling get_model().
00055 ////////////////////////////////////////////////////////////////////
00056 INLINE bool ModelLoadRequest::
00057 is_ready() const {
00058   return _is_ready;
00059 }
00060 
00061 ////////////////////////////////////////////////////////////////////
00062 //     Function: ModelLoadRequest::get_model
00063 //       Access: Published
00064 //  Description: Returns the model that was loaded asynchronously, if
00065 //               any, or NULL if there was an error.  It is an error
00066 //               to call this unless is_ready() returns true.
00067 ////////////////////////////////////////////////////////////////////
00068 INLINE PandaNode *ModelLoadRequest::
00069 get_model() const {
00070   nassertr(_is_ready, NULL);
00071   return _model;
00072 }
 All Classes Functions Variables Enumerations