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_chart2_XTransformation_idl 24#define com_sun_star_chart2_XTransformation_idl 25 26#ifndef __com_sun_star_uno_XInterface_idl__ 27#include <com/sun/star/uno/XInterface.idl> 28#endif 29 30#ifndef __com_sun_star_lang_IllegalArgumentException_idl__ 31#include <com/sun/star/lang/IllegalArgumentException.idl> 32#endif 33 34module com 35{ 36module sun 37{ 38module star 39{ 40module chart2 41{ 42 43 // NOTES 44 45 //... provide help for creating the right transfomation 46 // 47 // ... access to source and destination coordinate system ? 48 49/** allows the transformation of numeric values from one 50 coordinate-system into an other. Values may be transformed using 51 any mapping. 52 */ 53interface XTransformation : ::com::sun::star::uno::XInterface 54{ 55 /** transforms the given input data tuple, given in the source 56 coordinate system, according to the internal transformation 57 rules, into a tuple of transformed coordinates in the 58 destination coordinate system. 59 60 <p>Note that both coordinate systems may have different 61 dimensions, e.g., if a transformation does simply a projection 62 into a lower-dimensional space.</p> 63 64 @param aValues a source tuple of data that is to be 65 transformed. The length of this sequence must be 66 equivalent to the dimension of the source coordinate 67 system. 68 69 @return the transformed data tuple. The length of this 70 sequence is equal to the dimension of the output 71 coordinate system. 72 73 @throws ::com::sun::star::lang::IllegalArgumentException 74 if the dimension of the input vector is not equal to the 75 dimension given in <member>getSourceDimension</member>. 76 */ 77 sequence< double > transform( [in] sequence< double > aValues ) 78 raises( ::com::sun::star::lang::IllegalArgumentException ); 79 80 /** the dimension of the input coordinate sequence that is to be 81 transformed by the <member>transform</member> method. 82 */ 83 long getSourceDimension(); 84 85 /** the dimension of the output coordinate sequence that is the 86 result of the <member>transform</member> method. 87 */ 88 long getTargetDimension(); 89}; 90 91} ; // chart2 92} ; // com 93} ; // sun 94} ; // star 95 96 97#endif 98