1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance 9 * with the License. You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. 19 * 20 *************************************************************/ 21 22 23#ifndef __com_sun_star_graphic_XPrimitive3D_idl__ 24#define __com_sun_star_graphic_XPrimitive3D_idl__ 25 26#ifndef __com_sun_star_uno_XInterface_idl__ 27#include <com/sun/star/uno/XInterface.idl> 28#endif 29#ifndef __com_sun_star_beans_PropertyValue_idl__ 30#include <com/sun/star/beans/PropertyValue.idl> 31#endif 32#ifndef __com_sun_star_geometry_RealRectangle3D_idl__ 33#include <com/sun/star/geometry/RealRectangle3D.idl> 34#endif 35 36module com { module sun { module star { module graphic { 37 38/** XPrimitive3D interface 39 40 This is the basic interface for graphic 3D primitives. They need to be able 41 - to provide a decomposition consisting of simpler graphic primitives 42 - to provide a 3D bound rectangle as a 3D range 43 */ 44interface XPrimitive3D : ::com::sun::star::uno::XInterface 45{ 46 /** Retrieve decomposed list of simpler primitives 47 48 @param aViewParameters 49 3D View-specific parameter set. The defined but not mandatory 50 parameters include: 51 52 double Time 53 54 Defines the point in time for which the geometry is defined. This may 55 lead to varied results for animated objects. This value is defined in the 56 range [0.0 .. n[, negative values are not allowed. If not given, a value of 57 0.0 is implied. 58 */ 59 sequence< XPrimitive3D > getDecomposition( [in] sequence< ::com::sun::star::beans::PropertyValue > aViewParameters ); 60 61 /** Retrieve bound rect of primitive 62 63 This method calculates the actual bound rect of the area in 64 <em>world coordinates<em>. Note that for view-dependent primitives, 65 the necessary pixel adjustments are taken into account. For that reason 66 the ViewParameters need to be given. 67 68 @param aViewParameters 69 3D View-specific parameter set, same as in getDecomposition. 70 */ 71 ::com::sun::star::geometry::RealRectangle3D getRange( [in] sequence< ::com::sun::star::beans::PropertyValue > aViewParameters ); 72}; 73 74}; }; }; }; 75 76#endif 77