<?xml version="1.0" encoding="UTF-8"?>
<fib_object
			xmlns:xsd="http://www.w3.org/2001/XMLSchema-instance"
			xmlns="http://www.biokom.info/"
			xsd:schemaLocation="http://www.biokom.info/fib.xsd">
<root>
	<multimedia_info fib_version="3" db_version="2"/>
	<optionalpart>
		<pair key="description" value="This object is for testing database object with id -917 ."/>
		<pair key="call" value="../../../add_ons/converter/bin/convertFromFib dbId-000917.xml dbId-000917.png"/>
	</optionalpart>
	<domains>
		<dim count="2">
			<dimension number="1" direction="horizontal"/>
			<dimension number="2" direction="vertical"/>
			<vector elements="2">
				<integer min="0" max="95"/>
				<integer min="0" max="127"/>
			</vector>
		</dim>
		<property name="colorRGB" >
			<vector elements="3">
				<naturalNumberB bit="8" />
				<naturalNumberB bit="8" />
				<naturalNumberB bit="8" />
			</vector>
		</property>
		<property name="transparency" >
			<vector elements="1">
				<naturalNumberB bit="8" />
			</vector>
		</property>
		<subfunction>
			<naturalNumber max="255" />
		</subfunction>
		<externObject>
			<vector elements="4">
				<integer min="-10000" max="10000" />
				<naturalNumber max="2" />
				<naturalNumber max="1" />
				<naturalNumber max="0" />
			</vector>
		</externObject>
	</domains>
	<main_fib_object>
		<list>
			<property>
				<vector type="property.colorRGB">
					<value>255</value>
					<value>0</value>
					<value>0</value>
				</vector>
				<background/>
			</property>
			<property>
				<vector type="property.colorRGB">
					<value>0</value>
					<value>255</value>
					<value>0</value>
				</vector>
				<list>
					<point/>
					<!-- line 1 -->
					<area define_variable="1">
							<vector type="subarea">
								<value>-10</value>
								<value>20</value>
							</vector>
							<obj identifier="-917">
								<vector type="externObjectInput">
									<value>0</value>
									<variable>1</variable>
									<value>0</value>
									<value>2</value>
									<value>0</value>
								</vector>
								<subobject>
									<output_variables>
										<variable>2</variable>
									</output_variables>
									<function define_variable="3">
										<subfunction>
											<add>
												<mult>
													<variable>2</variable>
													<value>5</value>
												</mult>
												<value>10</value>
											</add>
										</subfunction>
										<function define_variable="4">
											<subfunction>
												<add>
													<variable>1</variable>
													<value>20</value>
												</add>
											</subfunction>
											<property>
												<vector type="property.colorRGB">
													<value>0</value>
													<value>0</value>
													<value>255</value>
												</vector>
												<point>
													<vector type="position">
														<variable>4</variable>
														<variable>3</variable>
													</vector>
												</point>
											</property>
										</function>
									</function>
								</subobject>
							</obj>
						</area>
						<!-- line 2 -->
						<area define_variable="1">
							<vector type="subarea">
								<value>-10</value>
								<value>20</value>
							</vector>
							<obj identifier="-917">
								<vector type="externObjectInput">
									<value>0</value>
									<variable>1</variable>
									<value>-2</value>
									<value>0</value>
									<value>0</value>
								</vector>
								<subobject>
									<output_variables>
										<variable>2</variable>
									</output_variables>
									<function define_variable="3">
										<subfunction>
											<add>
												<mult>
													<variable>2</variable>
													<value>5</value>
												</mult>
												<value>30</value>
											</add>
										</subfunction>
										<function define_variable="4">
											<subfunction>
												<add>
													<variable>1</variable>
													<value>20</value>
												</add>
											</subfunction>
											<property>
												<vector type="property.colorRGB">
													<value>0</value>
													<value>255</value>
													<value>0</value>
												</vector>
												<point>
													<vector type="position">
														<variable>4</variable>
														<variable>3</variable>
													</vector>
												</point>
											</property>
										</function>
									</function>
								</subobject>
							</obj>
						</area>
						
						<area define_variable="1">
							<vector type="subarea">
								<value>-10</value>
								<value>20</value>
							</vector>
							<obj identifier="-917">
								<vector type="externObjectInput">
									<value>0</value>
									<variable>1</variable>
									<value>-2</value>
									<value>0</value>
									<value>-2</value>
								</vector>
								<subobject>
									<output_variables>
										<variable>2</variable>
									</output_variables>
									<function define_variable="3">
										<subfunction>
											<add>
												<mult>
													<variable>2</variable>
													<value>5</value>
												</mult>
												<value>50</value>
											</add>
										</subfunction>
										<function define_variable="4">
											<subfunction>
												<add>
													<variable>1</variable>
													<value>20</value>
												</add>
											</subfunction>
											<property>
												<vector type="property.colorRGB">
													<value>0</value>
													<value>255</value>
													<value>255</value>
												</vector>
												<point>
													<vector type="position">
														<variable>4</variable>
														<variable>3</variable>
													</vector>
												</point>
											</property>
										</function>
									</function>
								</subobject>
							</obj>
						</area>
							
						<area define_variable="1">
							<vector type="subarea">
								<value>-10</value>
								<value>20</value>
							</vector>
							<obj identifier="-917">
								<vector type="externObjectInput">
									<value>0</value>
									<variable>1</variable>
									<value>0</value>
									<value>2</value>
									<value>-2</value>
									<!--<value>-1</value>-->
								</vector>
								<subobject>
									<output_variables>
										<variable>2</variable>
									</output_variables>
									<function define_variable="3">
										<subfunction>
											<add>
												<mult>
													<variable>2</variable>
													<value>5</value>
												</mult>
												<value>70</value>
											</add>
										</subfunction>
										<function define_variable="4">
											<subfunction>
												<add>
													<variable>1</variable>
													<value>20</value>
												</add>
											</subfunction>
											<property>
												<vector type="property.colorRGB">
													<value>255</value>
													<value>255</value>
													<value>0</value>
												</vector>
												<point>
													<vector type="position">
														<variable>4</variable>
														<variable>3</variable>
													</vector>
												</point>
											</property>
										</function>
									</function>
								</subobject>
							</obj>
						</area>
						
						
						<!-- test pixles with element greater 2 -->
						<area define_variable="1">
							<vector type="subarea">
								<value>40</value>
								<value>100</value>
							</vector>
							<function define_variable="2">
								<subfunction>
									<div>
										<variable>1</variable>
										<value>60</value>
									</div>
								</subfunction>
								<obj identifier="-917">
									<vector type="externObjectInput">
										<value>0</value>
										<variable>2</variable>
										<value>5</value>
										<value>7</value>
										<value>7</value>
										<!--<value>8</value>-->
									</vector>
									<subobject>
										<output_variables>
											<variable>3</variable>
										</output_variables>
										<function define_variable="4">
											<subfunction>
												<add>
													<mult>
														<variable>3</variable>
														<value>4</value>
													</mult>
													<value>90</value>
												</add>
											</subfunction>
											<function define_variable="5">
												<subfunction>
													<add>
														<variable>1</variable>
														<value>-30</value>
													</add>
												</subfunction>
												<property>
													<vector type="property.colorRGB">
														<value>255</value>
														<value>255</value>
														<value>255</value>
													</vector>
													<point>
														<vector type="position">
															<variable>5</variable>
															<variable>4</variable>
														</vector>
													</point>
												</property>
											</function>
										</function>
									</subobject>
								</obj>
							</function>
						</area>
					
					<!-- test with given a_0 (and a_1 < 0)-->
						<area define_variable="1">
							<vector type="subarea">
								<value>-90</value>
								<value>-30</value>
							</vector>
							<function define_variable="2">
								<subfunction>
									<div>
										<variable>1</variable>
										<value>40</value>
									</div>
								</subfunction>
								<obj identifier="-917">
									<vector type="externObjectInput">
										<value>4</value>
										<variable>2</variable>
										<value>3</value>
										<value>5</value>
										<value>-3</value>
										<!--<value>-2</value>-->
									</vector>
									<subobject>
										<output_variables>
											<variable>3</variable>
										</output_variables>
										<function define_variable="4">
											<subfunction>
												<add>
													<mult>
														<variable>3</variable>
														<value>4</value>
													</mult>
													<value>100</value>
												</add>
											</subfunction>
											<function define_variable="5">
												<subfunction>
													<add>
														<variable>1</variable>
														<value>100</value>
													</add>
												</subfunction>
												<property>
													<vector type="property.colorRGB">
														<value>128</value>
														<value>128</value>
														<value>255</value>
													</vector>
													<point>
														<vector type="position">
															<variable>5</variable>
															<variable>4</variable>
														</vector>
													</point>
												</property>
											</function>
										</function>
									</subobject>
								</obj>
							</function>
						</area>
				
				</list>
			</property>
		</list>
	</main_fib_object>
</root>
</fib_object>
