Browse Source

these were never used anyway

David Rose 24 years ago
parent
commit
790cffef39

+ 0 - 26
panda/src/sgattrib/showHideAttribute.I

@@ -1,26 +0,0 @@
-// Filename: showHideAttribute.I
-// Created by:  drose (26Apr00)
-//
-////////////////////////////////////////////////////////////////////
-//
-// PANDA 3D SOFTWARE
-// Copyright (c) 2001, Disney Enterprises, Inc.  All rights reserved
-//
-// All use of this software is subject to the terms of the Panda 3d
-// Software license.  You should have received a copy of this license
-// along with this source code; you will also find a current copy of
-// the license at http://www.panda3d.org/license.txt .
-//
-// To contact the maintainers of this program write to
-// [email protected] .
-//
-////////////////////////////////////////////////////////////////////
-
-////////////////////////////////////////////////////////////////////
-//     Function: ShowHideAttribute::Constructor
-//       Access: Public
-//  Description:
-////////////////////////////////////////////////////////////////////
-INLINE ShowHideAttribute::
-ShowHideAttribute() {
-}

+ 0 - 79
panda/src/sgattrib/showHideAttribute.cxx

@@ -1,79 +0,0 @@
-// Filename: showHideAttribute.cxx
-// Created by:  drose (26Apr00)
-//
-////////////////////////////////////////////////////////////////////
-//
-// PANDA 3D SOFTWARE
-// Copyright (c) 2001, Disney Enterprises, Inc.  All rights reserved
-//
-// All use of this software is subject to the terms of the Panda 3d
-// Software license.  You should have received a copy of this license
-// along with this source code; you will also find a current copy of
-// the license at http://www.panda3d.org/license.txt .
-//
-// To contact the maintainers of this program write to
-// [email protected] .
-//
-////////////////////////////////////////////////////////////////////
-
-#include "showHideAttribute.h"
-#include "showHideTransition.h"
-
-#include <graphicsStateGuardianBase.h>
-#include <indent.h>
-
-TypeHandle ShowHideAttribute::_type_handle;
-
-////////////////////////////////////////////////////////////////////
-//     Function: ShowHideAttribute::get_handle
-//       Access: Public, Virtual
-//  Description: Returns the handle of the associated transition.
-////////////////////////////////////////////////////////////////////
-TypeHandle ShowHideAttribute::
-get_handle() const {
-  return ShowHideTransition::get_class_type();
-}
-
-////////////////////////////////////////////////////////////////////
-//     Function: ShowHideAttribute::make_copy
-//       Access: Public, Virtual
-//  Description: Returns a newly allocated ShowHideAttribute just like
-//               this one.
-////////////////////////////////////////////////////////////////////
-NodeAttribute *ShowHideAttribute::
-make_copy() const {
-  return new ShowHideAttribute(*this);
-}
-
-////////////////////////////////////////////////////////////////////
-//     Function: ShowHideAttribute::make_initial
-//       Access: Public, Virtual
-//  Description: Returns a newly allocated ShowHideAttribute
-//               corresponding to the default initial state.
-////////////////////////////////////////////////////////////////////
-NodeAttribute *ShowHideAttribute::
-make_initial() const {
-  return new ShowHideAttribute;
-}
-
-////////////////////////////////////////////////////////////////////
-//     Function: ShowHideAttribute::output_value
-//       Access: Protected, Virtual
-//  Description: Formats the value for human consumption on one line.
-////////////////////////////////////////////////////////////////////
-void ShowHideAttribute::
-output_property(ostream &out, const PT(Camera) &prop) const {
-  out << *prop;
-}
-
-////////////////////////////////////////////////////////////////////
-//     Function: ShowHideAttribute::write_value
-//       Access: Protected, Virtual
-//  Description: Formats the value for human consumption on multiple
-//               lines if necessary.
-////////////////////////////////////////////////////////////////////
-void ShowHideAttribute::
-write_property(ostream &out, const PT(Camera) &prop,
-               int indent_level) const {
-  indent(out, indent_level) << *prop << "\n";
-}

+ 0 - 72
panda/src/sgattrib/showHideAttribute.h

@@ -1,72 +0,0 @@
-// Filename: showHideAttribute.h
-// Created by:  drose (26Apr00)
-//
-////////////////////////////////////////////////////////////////////
-//
-// PANDA 3D SOFTWARE
-// Copyright (c) 2001, Disney Enterprises, Inc.  All rights reserved
-//
-// All use of this software is subject to the terms of the Panda 3d
-// Software license.  You should have received a copy of this license
-// along with this source code; you will also find a current copy of
-// the license at http://www.panda3d.org/license.txt .
-//
-// To contact the maintainers of this program write to
-// [email protected] .
-//
-////////////////////////////////////////////////////////////////////
-
-#ifndef SHOWHIDEATTRIBUTE_H
-#define SHOWHIDEATTRIBUTE_H
-
-#include <pandabase.h>
-
-#include "showHideNameClass.h"
-
-#include <multiAttribute.h>
-#include <pointerTo.h>
-#include <camera.h>
-
-// We need to define this temporary macro so we can pass a parameter
-// containing a comma through the macro.
-#define MULTIATTRIBUTE_CAMERA MultiAttribute<PT(Camera), ShowHideNameClass>
-EXPORT_TEMPLATE_CLASS(EXPCL_PANDA, EXPTP_PANDA, MULTIATTRIBUTE_CAMERA);
-
-////////////////////////////////////////////////////////////////////
-//       Class : ShowHideAttribute
-// Description : See ShowHideTransition.
-////////////////////////////////////////////////////////////////////
-class EXPCL_PANDA ShowHideAttribute : public MultiAttribute<PT(Camera), ShowHideNameClass> {
-public:
-  INLINE ShowHideAttribute();
-
-  virtual TypeHandle get_handle() const;
-  virtual NodeAttribute *make_copy() const;
-  virtual NodeAttribute *make_initial() const;
-
-protected:
-  virtual void output_property(ostream &out, const PT(Camera) &prop) const;
-  virtual void write_property(ostream &out, const PT(Camera) &prop,
-                              int indent_level) const;
-
-public:
-  virtual TypeHandle get_type() const {
-    return get_class_type();
-  }
-  virtual TypeHandle force_init_type() {init_type(); return get_class_type();}
-  static TypeHandle get_class_type() {
-    return _type_handle;
-  }
-  static void init_type() {
-    MultiAttribute<PT(Camera), ShowHideNameClass>::init_type();
-    register_type(_type_handle, "ShowHideAttribute",
-                  MultiAttribute<PT(Camera), ShowHideNameClass>::get_class_type());
-  }
-
-private:
-  static TypeHandle _type_handle;
-};
-
-#include "showHideAttribute.I"
-
-#endif

+ 0 - 40
panda/src/sgattrib/showHideNameClass.h

@@ -1,40 +0,0 @@
-// Filename: showHideNameClass.h
-// Created by:  drose (26Apr00)
-//
-////////////////////////////////////////////////////////////////////
-//
-// PANDA 3D SOFTWARE
-// Copyright (c) 2001, Disney Enterprises, Inc.  All rights reserved
-//
-// All use of this software is subject to the terms of the Panda 3d
-// Software license.  You should have received a copy of this license
-// along with this source code; you will also find a current copy of
-// the license at http://www.panda3d.org/license.txt .
-//
-// To contact the maintainers of this program write to
-// [email protected] .
-//
-////////////////////////////////////////////////////////////////////
-
-#ifndef SHOWHIDENAMECLASS_H
-#define SHOWHIDENAMECLASS_H
-
-#include <pandabase.h>
-
-////////////////////////////////////////////////////////////////////
-//       Class : ShowHideNameClass
-// Description : This is a stupid little class that's used by
-//               ShowHideTransition to define the name of its
-//               PT(Camera) class, so the MultiTransition it
-//               inherits from can initialize itself properly.
-////////////////////////////////////////////////////////////////////
-class EXPCL_PANDA ShowHideNameClass {
-public:
-  static string get_class_name() {
-    return "PT(Camera)";
-  }
-};
-
-#endif
-
-

+ 0 - 54
panda/src/sgattrib/showHideTransition.I

@@ -1,54 +0,0 @@
-// Filename: showHideTransition.I
-// Created by:  drose (26Apr00)
-//
-////////////////////////////////////////////////////////////////////
-//
-// PANDA 3D SOFTWARE
-// Copyright (c) 2001, Disney Enterprises, Inc.  All rights reserved
-//
-// All use of this software is subject to the terms of the Panda 3d
-// Software license.  You should have received a copy of this license
-// along with this source code; you will also find a current copy of
-// the license at http://www.panda3d.org/license.txt .
-//
-// To contact the maintainers of this program write to
-// [email protected] .
-//
-////////////////////////////////////////////////////////////////////
-
-////////////////////////////////////////////////////////////////////
-//     Function: ShowHideTransition::Constructor
-//       Access: Public
-//  Description:
-////////////////////////////////////////////////////////////////////
-INLINE ShowHideTransition::
-ShowHideTransition() {
-}
-
-////////////////////////////////////////////////////////////////////
-//     Function: ShowHideTransition::all_off
-//       Access: Public
-//  Description: This named constructor returns a ShowHideTransition
-//               that's preconfigured to disable visibility for all
-//               cameras.
-////////////////////////////////////////////////////////////////////
-INLINE ShowHideTransition ShowHideTransition::
-all_off() {
-  ShowHideTransition t;
-  t.set_default_dir(TD_off);
-  return t;
-}
-
-////////////////////////////////////////////////////////////////////
-//     Function: ShowHideTransition::all_on
-//       Access: Public
-//  Description: This named constructor returns a ShowHideTransition
-//               that's preconfigured to enable visibility for all
-//               cameras.
-////////////////////////////////////////////////////////////////////
-INLINE ShowHideTransition ShowHideTransition::
-all_on() {
-  ShowHideTransition t;
-  t.set_default_dir(TD_on);
-  return t;
-}

+ 0 - 78
panda/src/sgattrib/showHideTransition.cxx

@@ -1,78 +0,0 @@
-// Filename: showHideTransition.cxx
-// Created by:  drose (26Apr00)
-//
-////////////////////////////////////////////////////////////////////
-//
-// PANDA 3D SOFTWARE
-// Copyright (c) 2001, Disney Enterprises, Inc.  All rights reserved
-//
-// All use of this software is subject to the terms of the Panda 3d
-// Software license.  You should have received a copy of this license
-// along with this source code; you will also find a current copy of
-// the license at http://www.panda3d.org/license.txt .
-//
-// To contact the maintainers of this program write to
-// [email protected] .
-//
-////////////////////////////////////////////////////////////////////
-
-#include "showHideTransition.h"
-#include "showHideAttribute.h"
-
-#include <indent.h>
-
-TypeHandle ShowHideTransition::_type_handle;
-
-////////////////////////////////////////////////////////////////////
-//     Function: ShowHideTransition::make_copy
-//       Access: Public, Virtual
-//  Description: Returns a newly allocated ShowHideTransition just like
-//               this one.
-////////////////////////////////////////////////////////////////////
-NodeTransition *ShowHideTransition::
-make_copy() const {
-  return new ShowHideTransition(*this);
-}
-
-////////////////////////////////////////////////////////////////////
-//     Function: ShowHideTransition::make_attrib
-//       Access: Public, Virtual
-//  Description: Returns a newly allocated ShowHideAttribute.
-////////////////////////////////////////////////////////////////////
-NodeAttribute *ShowHideTransition::
-make_attrib() const {
-  return new ShowHideAttribute;
-}
-
-////////////////////////////////////////////////////////////////////
-//     Function: ShowHideTransition::make_identity
-//       Access: Public, Virtual
-//  Description: Returns a newly allocated ShowHideTransition in the
-//               initial state.
-////////////////////////////////////////////////////////////////////
-NodeTransition *ShowHideTransition::
-make_identity() const {
-  return new ShowHideTransition;
-}
-
-////////////////////////////////////////////////////////////////////
-//     Function: ShowHideTransition::output_value
-//       Access: Protected, Virtual
-//  Description: Formats the value for human consumption on one line.
-////////////////////////////////////////////////////////////////////
-void ShowHideTransition::
-output_property(ostream &out, const PT(Camera) &prop) const {
-  out << *prop;
-}
-
-////////////////////////////////////////////////////////////////////
-//     Function: ShowHideTransition::write_value
-//       Access: Protected, Virtual
-//  Description: Formats the value for human consumption on multiple
-//               lines if necessary.
-////////////////////////////////////////////////////////////////////
-void ShowHideTransition::
-write_property(ostream &out, const PT(Camera) &prop,
-               int indent_level) const {
-  indent(out, indent_level) << *prop << "\n";
-}

+ 0 - 81
panda/src/sgattrib/showHideTransition.h

@@ -1,81 +0,0 @@
-// Filename: showHideTransition.h
-// Created by:  drose (26Apr00)
-//
-////////////////////////////////////////////////////////////////////
-//
-// PANDA 3D SOFTWARE
-// Copyright (c) 2001, Disney Enterprises, Inc.  All rights reserved
-//
-// All use of this software is subject to the terms of the Panda 3d
-// Software license.  You should have received a copy of this license
-// along with this source code; you will also find a current copy of
-// the license at http://www.panda3d.org/license.txt .
-//
-// To contact the maintainers of this program write to
-// [email protected] .
-//
-////////////////////////////////////////////////////////////////////
-
-#ifndef SHOWHIDETRANSITION_H
-#define SHOWHIDETRANSITION_H
-
-#include <pandabase.h>
-
-#include "showHideNameClass.h"
-
-#include <multiTransition.h>
-#include <pointerTo.h>
-#include <camera.h>
-
-// We need to define this temporary macro so we can pass a parameter
-// containing a comma through the macro.
-#define MULTITRANSITION_CAMERA MultiTransition<PT(Camera), ShowHideNameClass>
-EXPORT_TEMPLATE_CLASS(EXPCL_PANDA, EXPTP_PANDA, MULTITRANSITION_CAMERA);
-
-////////////////////////////////////////////////////////////////////
-//       Class : ShowHideTransition
-// Description : This transition controls which cameras can view the
-//               geometry.  By default, all cameras see everything;
-//               you can restrict the visibility of a particular
-//               subgraph to an arbitrary subset of cameras (or to no
-//               cameras at all).
-////////////////////////////////////////////////////////////////////
-class EXPCL_PANDA ShowHideTransition : public MultiTransition<PT(Camera), ShowHideNameClass> {
-public:
-  INLINE ShowHideTransition();
-  INLINE static ShowHideTransition all_off();
-  INLINE static ShowHideTransition all_on();
-
-  virtual NodeTransition *make_copy() const;
-  virtual NodeAttribute *make_attrib() const;
-  virtual NodeTransition *make_identity() const;
-
-protected:
-  virtual void output_property(ostream &out, const PT(Camera) &prop) const;
-  virtual void write_property(ostream &out, const PT(Camera) &prop,
-                              int indent_level) const;
-
-public:
-  virtual TypeHandle get_type() const {
-    return get_class_type();
-  }
-  virtual TypeHandle force_init_type() {init_type(); return get_class_type();}
-  static TypeHandle get_class_type() {
-    return _type_handle;
-  }
-  static void init_type() {
-    MultiTransition<PT(Camera), ShowHideNameClass>::init_type();
-    register_type(_type_handle, "ShowHideTransition",
-                  MultiTransition<PT(Camera), ShowHideNameClass>::get_class_type());
-  }
-
-private:
-  static TypeHandle _type_handle;
-  friend class ShowHideAttribute;
-};
-
-#include "showHideTransition.I"
-
-#endif
-
-