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

pluginFrontEnd.cpp

Go to the documentation of this file.
00001 /* xandi, too lazy to write header */
00002 #include "pluginFrontEnd.h"
00003 
00004 #include "../../plugin.h"
00005 #include "../../pluginhandling.h"
00006 
00007 #include <stdio.h>
00008 
00009 #define UNUSED_ARGUMENT(a) a = a;
00010 
00011 extern struct FEPList* FEPhead;
00012 
00013 PlugInFrontEnd::PlugInFrontEnd () {
00014 
00015 };
00016 
00017 PlugInFrontEnd::PlugInFrontEnd (int argc, char** argv)
00018     {
00019     UNUSED_ARGUMENT(argc);
00020     UNUSED_ARGUMENT(argv);
00021     PlugInFrontEnd ();
00022     };
00023 
00024 PlugInFrontEnd::~PlugInFrontEnd () {
00025 };
00026 
00027 
00028 void PlugInFrontEnd::init () {
00029     FEPList* tmp;
00030     tmp = FEPhead;
00031 
00032     fprintf ( stderr, "\ndoing init");
00033 
00034     while (tmp != NULL)
00035         {
00036         if ( tmp->active )
00037             tmp->plug->init ();
00038 
00039         tmp = tmp->next;
00040         }
00041     }
00042 
00043 void PlugInFrontEnd::update () {
00044     FEPList* tmp;
00045     tmp = FEPhead;
00046 
00047     while (tmp != NULL)
00048         {
00049         if ( tmp->active )
00050             tmp->plug->update ();
00051 
00052         tmp = tmp->next;
00053         }
00054     }
00055 
00056 void PlugInFrontEnd::displayUsers (int users)
00057     {
00058     FEPList* tmp;
00059     tmp = FEPhead;
00060 
00061     while (tmp != NULL)
00062         {
00063         if ( tmp->active )
00064             tmp->plug->displayUsers ( users );
00065 
00066         tmp = tmp->next;
00067         }
00068     }
00069 
00070 void PlugInFrontEnd::displayMatrices (int matrices)
00071     {
00072     FEPList* tmp;
00073     tmp = FEPhead;
00074 
00075     while (tmp != NULL)
00076         {
00077         if ( tmp->active )
00078             tmp->plug->displayMatrices ( matrices );
00079 
00080         tmp = tmp->next;
00081         }
00082     }
00083 
00084 void PlugInFrontEnd::displayDebugMessage (const char* msg)
00085     {
00086     FEPList* tmp;
00087     tmp = FEPhead;
00088 
00089     while (tmp != NULL)
00090         {
00091         if ( tmp->active )
00092             tmp->plug->displayDebugMessage ( const_cast<char*>(msg) );
00093 
00094         tmp = tmp->next;
00095         }
00096     }

Generated at Sat May 13 13:50:22 2000 for 3Dsia by doxygen 1.1.2 written by Dimitri van Heesch, © 1997-2000