1*4f506f19SAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 3*4f506f19SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*4f506f19SAndrew Rist * or more contributor license agreements. See the NOTICE file 5*4f506f19SAndrew Rist * distributed with this work for additional information 6*4f506f19SAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*4f506f19SAndrew Rist * to you under the Apache License, Version 2.0 (the 8*4f506f19SAndrew Rist * "License"); you may not use this file except in compliance 9*4f506f19SAndrew Rist * with the License. You may obtain a copy of the License at 10*4f506f19SAndrew Rist * 11*4f506f19SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12*4f506f19SAndrew Rist * 13*4f506f19SAndrew Rist * Unless required by applicable law or agreed to in writing, 14*4f506f19SAndrew Rist * software distributed under the License is distributed on an 15*4f506f19SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*4f506f19SAndrew Rist * KIND, either express or implied. See the License for the 17*4f506f19SAndrew Rist * specific language governing permissions and limitations 18*4f506f19SAndrew Rist * under the License. 19*4f506f19SAndrew Rist * 20*4f506f19SAndrew Rist *************************************************************/ 21*4f506f19SAndrew Rist 22*4f506f19SAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweir #ifndef INCLUDED_DRAWINGLAYER_PRIMITIVE3D_GROUPPRIMITIVE3D_HXX 25cdf0e10cSrcweir #define INCLUDED_DRAWINGLAYER_PRIMITIVE3D_GROUPPRIMITIVE3D_HXX 26cdf0e10cSrcweir 27090f0eb8SEike Rathke #include <drawinglayer/drawinglayerdllapi.h> 28cdf0e10cSrcweir #include <drawinglayer/primitive3d/baseprimitive3d.hxx> 29cdf0e10cSrcweir 30cdf0e10cSrcweir ////////////////////////////////////////////////////////////////////////////// 31cdf0e10cSrcweir 32cdf0e10cSrcweir namespace drawinglayer 33cdf0e10cSrcweir { 34cdf0e10cSrcweir namespace primitive3d 35cdf0e10cSrcweir { 36cdf0e10cSrcweir /** GroupPrimitive3D class 37cdf0e10cSrcweir 38cdf0e10cSrcweir Baseclass for all grouping 3D primitives 39cdf0e10cSrcweir 40cdf0e10cSrcweir The description/functionality is identical with the 2D case in groupprimitive2d.hxx, 41cdf0e10cSrcweir please see there for detailed information. 42cdf0e10cSrcweir 43cdf0e10cSrcweir Current Basic 3D StatePrimitives are: 44cdf0e10cSrcweir 45cdf0e10cSrcweir - ModifiedColorPrimitive3D (for a stack of color modifications) 46cdf0e10cSrcweir - ShadowPrimitive3D (for 3D objects with shadow; this is a special case 47cdf0e10cSrcweir since the shadow of a 3D primitive is a 2D primitive set) 48cdf0e10cSrcweir - TexturePrimitive3D (with the following variations) 49cdf0e10cSrcweir - GradientTexturePrimitive3D (for 3D gradient fill) 50cdf0e10cSrcweir - BitmapTexturePrimitive3D (for 3D Bitmap fill) 51cdf0e10cSrcweir - TransparenceTexturePrimitive3D (for 3D transparence) 52cdf0e10cSrcweir - HatchTexturePrimitive3D (for 3D hatch fill) 53cdf0e10cSrcweir - TransformPrimitive3D (for a transformation stack) 54cdf0e10cSrcweir */ 55090f0eb8SEike Rathke class DRAWINGLAYER_DLLPUBLIC GroupPrimitive3D : public BasePrimitive3D 56cdf0e10cSrcweir { 57cdf0e10cSrcweir private: 58cdf0e10cSrcweir /// the children. Declared private since this shall never be changed at all after construction 59cdf0e10cSrcweir Primitive3DSequence maChildren; 60cdf0e10cSrcweir 61cdf0e10cSrcweir public: 62cdf0e10cSrcweir /// constructor 63cdf0e10cSrcweir GroupPrimitive3D(const Primitive3DSequence& rChildren); 64cdf0e10cSrcweir 65cdf0e10cSrcweir /// data read access getChildren() const66cdf0e10cSrcweir Primitive3DSequence getChildren() const { return maChildren; } 67cdf0e10cSrcweir 68cdf0e10cSrcweir /// compare operator 69cdf0e10cSrcweir virtual bool operator==( const BasePrimitive3D& rPrimitive ) const; 70cdf0e10cSrcweir 71cdf0e10cSrcweir /// local decomposition. Implementation will just return children 72cdf0e10cSrcweir virtual Primitive3DSequence get3DDecomposition(const geometry::ViewInformation3D& rViewInformation) const; 73cdf0e10cSrcweir 74cdf0e10cSrcweir /// provide unique ID 75cdf0e10cSrcweir DeclPrimitrive3DIDBlock() 76cdf0e10cSrcweir }; 77cdf0e10cSrcweir } // end of namespace primitive3d 78cdf0e10cSrcweir } // end of namespace drawinglayer 79cdf0e10cSrcweir 80cdf0e10cSrcweir ////////////////////////////////////////////////////////////////////////////// 81cdf0e10cSrcweir 82cdf0e10cSrcweir #endif //INCLUDED_DRAWINGLAYER_PRIMITIVE3D_GROUPPRIMITIVE3D_HXX 83cdf0e10cSrcweir 84cdf0e10cSrcweir ////////////////////////////////////////////////////////////////////////////// 85cdf0e10cSrcweir // eof 86