Commit b020e584 authored by Ken Martin's avatar Ken Martin
Browse files

Added Copyright and print methods

parent 9b12ae83
/*=========================================================================
Program: OSCAR
Program: Visualization Library
Module: Camera.hh
Language: C++
Date: $Date$
Version: $Revision$
Description:
---------------------------------------------------------------------------
This file is part of the vis library
This file is part of the Visualization Library. No part of this file or its
contents may be copied, reproduced or altered in any way without the express
written consent of the authors.
- Ken Martin
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen 1993, 1994
=========================================================================*/
#ifndef __vlCamera_hh
......@@ -58,6 +58,8 @@ class vlCamera : public vlObject
float GetTwist();
float *GetViewPlaneNormal();
void PrintSelf(ostream& os, vlIndent indent);
char *GetClassName() {return "vlCamera";};
};
#endif
/*=========================================================================
Program: OSCAR
Program: Visualization Library
Module: LightC.hh
Language: C++
Date: $Date$
Version: $Revision$
Description:
---------------------------------------------------------------------------
This file is part of the vis library
This file is part of the Visualization Library. No part of this file or its
contents may be copied, reproduced or altered in any way without the express
written consent of the authors.
- Ken Martin
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen 1993, 1994
=========================================================================*/
#ifndef __vlLightC_hh
......@@ -41,6 +41,7 @@ class vlLightCollection : public vlObject
void AddMember(vlLight *);
int GetNumberOfMembers();
vlLight *GetMember(int num);
void PrintSelf(ostream& os, vlIndent indent);
};
#endif
/*=========================================================================
Program: OSCAR
Program: Visualization Library
Module: Property.hh
Language: C++
Date: $Date$
Version: $Revision$
Description:
---------------------------------------------------------------------------
This file is part of the vis library
This file is part of the Visualization Library. No part of this file or its
contents may be copied, reproduced or altered in any way without the express
written consent of the authors.
- Ken Martin
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen 1993, 1994
=========================================================================*/
#ifndef __vlProperty_hh
......@@ -23,7 +23,7 @@ class vlRenderer;
class vlProperty : public vlObject
{
public:
protected:
float Color[3];
float AmbientColor[3];
float DiffuseColor[3];
......@@ -43,6 +43,7 @@ class vlProperty : public vlObject
public:
vlProperty();
char *GetClassName() {return "vlProperty";};
void PrintSelf(ostream& os, vlIndent indent);
virtual void Render(vlRenderer *ren) = 0;
void SetFlat (void);
......
......@@ -170,18 +170,16 @@ void vlLookupTable::PrintSelf(ostream& os, vlIndent indent)
{
vlObject::PrintSelf(os,indent);
os << indent << "Number colors: " << this->GetNumColors() << "\n";
os << indent << "Build Time: " <<this->BuildTime.GetMtime() << "\n";
os << indent << "Hue Range: (" << this->HueRange[0] << ", "
<< this->HueRange[1] << ")\n";
os << indent << "Insert Time: " <<this->InsertTime.GetMtime() << "\n";
os << indent << "Num Colors: " << this->GetNumColors() << "\n";
os << indent << "Saturation Range: (" << this->SaturationRange[0] << ", "
<< this->SaturationRange[1] << ")\n";
os << indent << "Value Range: (" << this->ValueRange[0] << ", "
<< this->ValueRange[1] << ")\n";
os << indent << "Table Range: (" << this->TableRange[0] << ", "
<< this->TableRange[1] << ")\n";
os << indent << "Build time: " <<this->BuildTime.GetMtime() << "\n";
os << indent << "Insert time: " <<this->InsertTime.GetMtime() << "\n";
os << indent << "Value Range: (" << this->ValueRange[0] << ", "
<< this->ValueRange[1] << ")\n";
}
}
......@@ -75,6 +75,7 @@ void vlMapper::PrintSelf(ostream& os, vlIndent indent)
{
vlObject::PrintSelf(os,indent);
os << indent << "Build Time: " <<this->BuildTime.GetMtime() << "\n";
if ( this->StartRender )
{
os << indent << "StartRender method defined.\n";
......@@ -102,18 +103,10 @@ void vlMapper::PrintSelf(ostream& os, vlIndent indent)
{
os << indent << "LookupTable: (none)\n";
}
if ( this->ScalarsVisible )
{
os << indent << "Scalar data is visible.\n";
}
else
{
os << indent << "Scalar data is not visible.\n";
}
os << indent << "ScalarsVisible: "
<< (this->ScalarsVisible ? "On\n" : "Off\n");
float *range = this->GetScalarRange();
os << indent << "Scalar range: (" << range[0] << ", " << range[1] << ")\n";
os << indent << "Build time: " <<this->BuildTime.GetMtime() << "\n";
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment