00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016 #ifndef __vtkPVServerOptionsInternals_h
00017 #define __vtkPVServerOptionsInternals_h
00018
00019 #include <vtkstd/vector>
00020 #include <vtkstd/string>
00021
00022 class vtkPVServerOptionsInternals
00023 {
00024 public:
00025
00026
00027
00028 struct MachineInformation
00029 {
00030 public:
00031 MachineInformation()
00032 {
00033 for(int i =0; i < 3; ++i)
00034 {
00035 this->LowerLeft[i] = 0.0;
00036 this->LowerRight[i] = 0.0;
00037 this->UpperLeft[i] = 0.0;
00038 }
00039 this->CaveBoundsSet = 0;
00040 }
00041
00042 vtkstd::string Name;
00043 vtkstd::string Environment;
00044 int CaveBoundsSet;
00045
00046 double LowerLeft[3];
00047 double LowerRight[3];
00048 double UpperLeft[3];
00049 };
00050 void PrintSelf(ostream& os, vtkIndent indent)
00051 {
00052 os << indent << "Machine Information :\n";
00053 vtkIndent ind = indent.GetNextIndent();
00054 for(unsigned int i =0; i < this->MachineInformationVector.size(); ++i)
00055 {
00056 MachineInformation& minfo = this->MachineInformationVector[i];
00057 os << ind << "Node: " << i << "\n";
00058 vtkIndent ind2 = ind.GetNextIndent();
00059 os << ind2 << "Name: " << minfo.Name.c_str() << "\n";
00060 os << ind2 << "Environment: " << minfo.Environment.c_str() << "\n";
00061 if(minfo.CaveBoundsSet)
00062 {
00063 int j;
00064 os << ind2 << "LowerLeft: ";
00065 for(j=0; j < 3; ++j)
00066 {
00067 os << minfo.LowerLeft[j] << " ";
00068 }
00069 os << "\n" << ind2 << "LowerRight: ";
00070 for(j=0; j < 3; ++j)
00071 {
00072 os << minfo.LowerRight[j] << " ";
00073 }
00074 os << "\n" << ind2 << "UpperLeft: ";
00075 for(j=0; j < 3; ++j)
00076 {
00077 os << minfo.UpperLeft[j] << " ";
00078 }
00079 os << "\n";
00080 }
00081 else
00082 {
00083 os << ind2 << "No Cave Options\n";
00084 }
00085 }
00086 }
00087 vtkstd::vector<MachineInformation> MachineInformationVector;
00088 };
00089
00090 #endif