X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Ftrunk%2Fsrc%2Fsynfig%2Ftransform.h;h=50bf7ffbc1982ec77b729041cc7e292be9c27d11;hb=9459638ad6797b8139f1e9f0715c96076dbf0890;hp=206a0c0ba0a963509ed4a3b18089da1533652131;hpb=28f28705612902c15cd0702cc891fba35bf2d2df;p=synfig.git diff --git a/synfig-core/trunk/src/synfig/transform.h b/synfig-core/trunk/src/synfig/transform.h index 206a0c0..50bf7ff 100644 --- a/synfig-core/trunk/src/synfig/transform.h +++ b/synfig-core/trunk/src/synfig/transform.h @@ -2,19 +2,20 @@ /*! \file transform.h ** \brief Template Header ** -** $Id: transform.h,v 1.1.1.1 2005/01/04 01:23:15 darco Exp $ +** $Id$ ** ** \legal -** Copyright (c) 2002 Robert B. Quattlebaum Jr. +** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley ** -** This software and associated documentation -** are CONFIDENTIAL and PROPRIETARY property of -** the above-mentioned copyright holder. +** This package is free software; you can redistribute it and/or +** modify it under the terms of the GNU General Public License as +** published by the Free Software Foundation; either version 2 of +** the License, or (at your option) any later version. ** -** You may not copy, print, publish, or in any -** other way distribute this software without -** a prior written agreement with -** the copyright holder. +** This package is distributed in the hope that it will be useful, +** but WITHOUT ANY WARRANTY; without even the implied warranty of +** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +** General Public License for more details. ** \endlegal */ /* ========================================================================= */ @@ -43,12 +44,12 @@ namespace synfig { class Transform : public etl::shared_object { GUID guid_; - + public: typedef etl::handle Handle; protected: - Transform(const GUID& guid=GUID(0)):guid_(guid) { } + Transform(const GUID& guid):guid_(guid) { } public: @@ -70,10 +71,10 @@ public: synfig::Vector perform(const synfig::Vector& x)const; synfig::Vector unperform(const synfig::Vector& x)const; - + synfig::Rect perform(const synfig::Rect& x)const; synfig::Rect unperform(const synfig::Rect& x)const; - + void push(const Transform::Handle& x) { if(x)push_back(x); } void pop() { pop_back(); } }; // END of class TransformStack