Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Current »

Private objesi, başka bir objeye özel parametreleri içinde bulunduran özel bir konteynerdır. Objeler arasında iletişim kurmayı sağlar. Private objesi başka bir objenin input parametrelerini ve App'e gitmesi istenilen ara parametreleri("Export" objesini) içine alır.
Private objesi Library'de bir obje üretilirken App'te nasıl çalışacağını anlamak için bir nevi iletişimin nasıl olduğunu görmeye yarar diyebiliriz. Bir A objesi üretilirken B objesine gerek varsa B objesi temsilen "Private" içerisine konulur ve birbirleri arasındaki iletişim sanki App'te B objesini çağırıp üzerine A objesini çağırmış gibi kontrol edilir. Bu kontrol Library içerisinde gerçekleşir. App'e gitmez.

Örnek:

<O N="A_Objesi" T="Project" >
   <P N="en" V="1000" Role="Input" />
   <P N="boy" V="500" Role="Input" />
   <P N="yukseklik" V="1500" Role="Input" />
   <P N="LocX" V="3000" Role="Input" />
   <P N="LocY" V="0" Role="Input" />
   <P N="LocZ" V="0" Role="Input" />
   <O N="vol1" T="Volume" Opacity="0.8">
           <O T="Surface" Z="-yukseklik+LocZ">
               <O T="Point" X="-en/2+LocX" Y="-boy/2+LocY" />
               <O T="Point" X="-en/2+LocX" Y="boy/2+LocY" />
               <O T="Point" X="en/2+LocX" Y="boy/2+LocY" />
               <O T="Point" X="en/2+LocX" Y="-boy/2+LocY" />
           </O>
           <O T="Surface" Z="LocZ">
               <O T="Point" X="-en/2+LocX" Y="-boy/2+LocY" />
               <O T="Point" X="-en/2+LocX" Y="boy/2+LocY" />
               <O T="Point" X="en/2+LocX" Y="boy/2+LocY" />
               <O T="Point" X="en/2+LocX" Y="-boy/2+LocY" />
           </O>
   </O>
   <O T="Export">
      <P N="Line" V="[[PT1.X,PT1.Y,PT1.Z],[PT2.X,PT2.Y,PT2.Z]]" />
      <P N="midpt" V="onliner(Line,0.5)" />
      <O N="Refline" T="Volume" Z="LocZ" >
           <O T="Point" X="-en/2+LocX" Y="-boy/2+LocY" />
           <O T="Point" X="en/2+LocX" Y="boy/2+LocY" />
      </O>
   </O>
</O>


<O N="B_Objesi" T="Project" >
   <P N="Width" V="200" Role="Input" />
   <P N="KK" V="kenarayak" T="kenarayak" Role="Input" />
   <O T="ParamInfo" Min="1" Max="1" Required="1" Pick="1" Param="KK" />
   <O T="Volume">
           <O T="Surface" X="midpt[0]" Y="midpt[1]" Z="midpt[2]">
               <O T="Point" X="-Width/2" Y="-Width/2" />
               <O T="Point" X="Width/2" Y="-Width/2" />
               <O T="Point" X="Width/2" Y="Width/2" />
               <O T="Point" X="-Width/2" Y="Width/2" />
           </O>
           <O T="Surface" X="KK.LocX" Y="KK.LocY" Z="Width+KK.LocZ">
               <O T="Point" X="-Width/2" Y="-Width/2" />
               <O T="Point" X="Width/2" Y="-Width/2" />
               <O T="Point" X="Width/2" Y="Width/2" />
               <O T="Point" X="-Width/2" Y="Width/2" />
           </O>
   </O>
   <O T="Private">
      <O N="A" T="A_Objesi">
           <P N="en" V="1000" />
           <P N="boy" V="500" />
           <P N="yukseklik" V="1500" />
           <P N="LocX" V="3000" />
           <P N="LocY" V="0" />
           <P N="LocZ" V="0" />
           <P N="Line" V="[[PT1.X,PT1.Y,PT1.Z],[PT2.X,PT2.Y,PT2.Z]]" />
           <P N="midpt" V="onliner(Line,0.5)" />
           <O N="Refline" T="Volume" Z="LocZ" Exported="1">
               <O T="Point" X="-en/2+LocX" Y="-boy/2+LocY" />
               <O T="Point" X="en/2+LocX" Y="boy/2+LocY" />
           </O>
      </O>
   </O>
</O>


Daha sonrasında bir B objesi oluşturulsun ve A objesine bağlı olarak bu obje oluşturulsun.

A objesi, B objesinin "Private" objesi içerisinde bulunan bir objedir. Bu App'te çağrılmış gibi birbirinden bağımsız iş görür. Bizim asıl ürettiğimiz B objesi ise "Hide Private Objects" butonuna tıklayarak görebilir,"Show Private Objects" butonu ile Private Obje içerisindeki objeleri tekrardan gösterebilirsiniz.

  • No labels