1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*************************************************************************
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
6 * Copyright 2000, 2010 Oracle and/or its affiliates.
8 * OpenOffice.org - a multi-platform office productivity suite
10 * This file is part of OpenOffice.org.
12 * OpenOffice.org is free software: you can redistribute it and/or modify
13 * it under the terms of the GNU Lesser General Public License version 3
14 * only, as published by the Free Software Foundation.
16 * OpenOffice.org is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU Lesser General Public License version 3 for more details
20 * (a copy is included in the LICENSE file that accompanied this code).
22 * You should have received a copy of the GNU Lesser General Public License
23 * version 3 along with OpenOffice.org. If not, see
24 * <http://www.openoffice.org/license.html>
25 * for a copy of the LGPLv3 License.
27 ************************************************************************/
28 #ifndef __com_sun_star_graphic_XPrimitive3D_idl__
29 #define __com_sun_star_graphic_XPrimitive3D_idl__
31 #include
<com
/sun
/star
/uno
/XInterface.idl
>
32 #include
<com
/sun
/star
/beans
/PropertyValue.idl
>
33 #include
<com
/sun
/star
/geometry
/RealRectangle3D.idl
>
35 module com
{ module sun
{ module star
{ module graphic
{
37 /** XPrimitive3D interface
39 This is the basic interface for graphic 3D primitives. They need to be able
40 - to provide a decomposition consisting of simpler graphic primitives
41 - to provide a 3D bound rectangle as a 3D range
43 interface XPrimitive3D
: ::com
::sun
::star
::uno
::XInterface
45 /** Retrieve decomposed list of simpler primitives
47 @param aViewParameters
48 3D View-specific parameter set. The defined but not mandatory
53 Defines the point in time for which the geometry is defined. This may
54 lead to varied results for animated objects. This value is defined in the
55 range [0.0 .. n[, negative values are not allowed. If not given, a value of
58 sequence
< XPrimitive3D
> getDecomposition
( [in] sequence
< ::com
::sun
::star
::beans
::PropertyValue
> aViewParameters
);
60 /** Retrieve bound rect of primitive
62 This method calculates the actual bound rect of the area in
63 <em>world coordinates<em>. Note that for view-dependent primitives,
64 the necessary pixel adjustments are taken into account. For that reason
65 the ViewParameters need to be given.
67 @param aViewParameters
68 3D View-specific parameter set, same as in getDecomposition.
70 ::com
::sun
::star
::geometry
::RealRectangle3D getRange
( [in] sequence
< ::com
::sun
::star
::beans
::PropertyValue
> aViewParameters
);
77 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */