From 790cffef39c4812dce179dccd9bad2450a41d076 Mon Sep 17 00:00:00 2001 From: David Rose Date: Fri, 3 Aug 2001 07:23:33 +0000 Subject: [PATCH] these were never used anyway --- panda/src/sgattrib/showHideAttribute.I | 26 -------- panda/src/sgattrib/showHideAttribute.cxx | 79 ---------------------- panda/src/sgattrib/showHideAttribute.h | 72 -------------------- panda/src/sgattrib/showHideNameClass.h | 40 ----------- panda/src/sgattrib/showHideTransition.I | 54 --------------- panda/src/sgattrib/showHideTransition.cxx | 78 ---------------------- panda/src/sgattrib/showHideTransition.h | 81 ----------------------- 7 files changed, 430 deletions(-) delete mode 100644 panda/src/sgattrib/showHideAttribute.I delete mode 100644 panda/src/sgattrib/showHideAttribute.cxx delete mode 100644 panda/src/sgattrib/showHideAttribute.h delete mode 100644 panda/src/sgattrib/showHideNameClass.h delete mode 100644 panda/src/sgattrib/showHideTransition.I delete mode 100644 panda/src/sgattrib/showHideTransition.cxx delete mode 100644 panda/src/sgattrib/showHideTransition.h diff --git a/panda/src/sgattrib/showHideAttribute.I b/panda/src/sgattrib/showHideAttribute.I deleted file mode 100644 index cbfc449817..0000000000 --- a/panda/src/sgattrib/showHideAttribute.I +++ /dev/null @@ -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 -// panda3d@yahoogroups.com . -// -//////////////////////////////////////////////////////////////////// - -//////////////////////////////////////////////////////////////////// -// Function: ShowHideAttribute::Constructor -// Access: Public -// Description: -//////////////////////////////////////////////////////////////////// -INLINE ShowHideAttribute:: -ShowHideAttribute() { -} diff --git a/panda/src/sgattrib/showHideAttribute.cxx b/panda/src/sgattrib/showHideAttribute.cxx deleted file mode 100644 index 69f8aff040..0000000000 --- a/panda/src/sgattrib/showHideAttribute.cxx +++ /dev/null @@ -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 -// panda3d@yahoogroups.com . -// -//////////////////////////////////////////////////////////////////// - -#include "showHideAttribute.h" -#include "showHideTransition.h" - -#include -#include - -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"; -} diff --git a/panda/src/sgattrib/showHideAttribute.h b/panda/src/sgattrib/showHideAttribute.h deleted file mode 100644 index e6bb91603f..0000000000 --- a/panda/src/sgattrib/showHideAttribute.h +++ /dev/null @@ -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 -// panda3d@yahoogroups.com . -// -//////////////////////////////////////////////////////////////////// - -#ifndef SHOWHIDEATTRIBUTE_H -#define SHOWHIDEATTRIBUTE_H - -#include - -#include "showHideNameClass.h" - -#include -#include -#include - -// We need to define this temporary macro so we can pass a parameter -// containing a comma through the macro. -#define MULTIATTRIBUTE_CAMERA MultiAttribute -EXPORT_TEMPLATE_CLASS(EXPCL_PANDA, EXPTP_PANDA, MULTIATTRIBUTE_CAMERA); - -//////////////////////////////////////////////////////////////////// -// Class : ShowHideAttribute -// Description : See ShowHideTransition. -//////////////////////////////////////////////////////////////////// -class EXPCL_PANDA ShowHideAttribute : public MultiAttribute { -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::init_type(); - register_type(_type_handle, "ShowHideAttribute", - MultiAttribute::get_class_type()); - } - -private: - static TypeHandle _type_handle; -}; - -#include "showHideAttribute.I" - -#endif diff --git a/panda/src/sgattrib/showHideNameClass.h b/panda/src/sgattrib/showHideNameClass.h deleted file mode 100644 index 120021da73..0000000000 --- a/panda/src/sgattrib/showHideNameClass.h +++ /dev/null @@ -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 -// panda3d@yahoogroups.com . -// -//////////////////////////////////////////////////////////////////// - -#ifndef SHOWHIDENAMECLASS_H -#define SHOWHIDENAMECLASS_H - -#include - -//////////////////////////////////////////////////////////////////// -// 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 - - diff --git a/panda/src/sgattrib/showHideTransition.I b/panda/src/sgattrib/showHideTransition.I deleted file mode 100644 index 40b076bc9c..0000000000 --- a/panda/src/sgattrib/showHideTransition.I +++ /dev/null @@ -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 -// panda3d@yahoogroups.com . -// -//////////////////////////////////////////////////////////////////// - -//////////////////////////////////////////////////////////////////// -// 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; -} diff --git a/panda/src/sgattrib/showHideTransition.cxx b/panda/src/sgattrib/showHideTransition.cxx deleted file mode 100644 index 9541b81e02..0000000000 --- a/panda/src/sgattrib/showHideTransition.cxx +++ /dev/null @@ -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 -// panda3d@yahoogroups.com . -// -//////////////////////////////////////////////////////////////////// - -#include "showHideTransition.h" -#include "showHideAttribute.h" - -#include - -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"; -} diff --git a/panda/src/sgattrib/showHideTransition.h b/panda/src/sgattrib/showHideTransition.h deleted file mode 100644 index 02056e8bb0..0000000000 --- a/panda/src/sgattrib/showHideTransition.h +++ /dev/null @@ -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 -// panda3d@yahoogroups.com . -// -//////////////////////////////////////////////////////////////////// - -#ifndef SHOWHIDETRANSITION_H -#define SHOWHIDETRANSITION_H - -#include - -#include "showHideNameClass.h" - -#include -#include -#include - -// We need to define this temporary macro so we can pass a parameter -// containing a comma through the macro. -#define MULTITRANSITION_CAMERA MultiTransition -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 { -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::init_type(); - register_type(_type_handle, "ShowHideTransition", - MultiTransition::get_class_type()); - } - -private: - static TypeHandle _type_handle; - friend class ShowHideAttribute; -}; - -#include "showHideTransition.I" - -#endif - -