Ignore:
Timestamp:
02/08/06 20:32:42 (18 years ago)
Author:
bittner
Message:

slider support for viewcells

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/VUT/GtpVisibilityPreprocessor/src/ViewCell.h

    r605 r608  
    66#include "Ray.h" 
    77#include "Statistics.h" 
     8#include "Material.h" 
    89//namespace GtpVisibilityPreprocessor { 
    910 
     
    107108        int Type() const; 
    108109 
    109         void SetParent(ViewCellInterior *parent); 
     110  void SetParent(ViewCellInterior *parent); 
    110111 
    111112        /** Adds a passing ray to the passing ray container. 
     
    147148 
    148149 
    149  
    150  
     150  /** set color for visiualizations */ 
     151  void SetColor(const RgbColor &color) { 
     152        mColor = color; 
     153  } 
     154 
     155  /** get color for visualuzations */ 
     156  RgbColor GetColor() const { 
     157        return mColor; 
     158  } 
     159 
     160   
    151161        /// parent view cell in the view cell hierarchy 
    152162        ViewCellInterior *mParent; 
     
    201211 
    202212        bool mValid; 
     213 
     214  /** color used for consistent visualization */ 
     215  RgbColor mColor; 
    203216}; 
    204217 
     
    221234        ViewCellContainer mChildren; 
    222235 
     236  void SetCost(const float c) { 
     237        mCost = c; 
     238  } 
     239  float GetCost() const { 
     240        return mCost; 
     241  } 
     242   
     243protected: 
     244  /** overall cost resulting from the merge */ 
     245  float mCost; 
    223246}; 
    224247 
     
    279302        int RefineViewCells(const VssRayContainer &rays, const ObjectContainer &objects); 
    280303 
     304  /** Assign colors to the viewcells so that they can be renderered interactively without 
     305          color flickering. 
     306  */ 
     307  void AssignRandomColors(); 
    281308        /** Updates view cell stats for this particular view cell 
    282309        */ 
    283310        void UpdateViewCellsStats(ViewCell *vc, ViewCellsStatistics &vcStat); 
    284311         
     312 
     313  /** Get costs resulting from each merge step. */ 
     314  void GetCostFunction(vector<float> &costFunction); 
     315   
    285316 
    286317        /** Returns optimal set of view cells for a given number of view cells. 
Note: See TracChangeset for help on using the changeset viewer.