Changeset 608 for trunk/VUT/GtpVisibilityPreprocessor/src/ViewCell.h
- Timestamp:
- 02/08/06 20:32:42 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/GtpVisibilityPreprocessor/src/ViewCell.h
r605 r608 6 6 #include "Ray.h" 7 7 #include "Statistics.h" 8 #include "Material.h" 8 9 //namespace GtpVisibilityPreprocessor { 9 10 … … 107 108 int Type() const; 108 109 109 110 void SetParent(ViewCellInterior *parent); 110 111 111 112 /** Adds a passing ray to the passing ray container. … … 147 148 148 149 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 151 161 /// parent view cell in the view cell hierarchy 152 162 ViewCellInterior *mParent; … … 201 211 202 212 bool mValid; 213 214 /** color used for consistent visualization */ 215 RgbColor mColor; 203 216 }; 204 217 … … 221 234 ViewCellContainer mChildren; 222 235 236 void SetCost(const float c) { 237 mCost = c; 238 } 239 float GetCost() const { 240 return mCost; 241 } 242 243 protected: 244 /** overall cost resulting from the merge */ 245 float mCost; 223 246 }; 224 247 … … 279 302 int RefineViewCells(const VssRayContainer &rays, const ObjectContainer &objects); 280 303 304 /** Assign colors to the viewcells so that they can be renderered interactively without 305 color flickering. 306 */ 307 void AssignRandomColors(); 281 308 /** Updates view cell stats for this particular view cell 282 309 */ 283 310 void UpdateViewCellsStats(ViewCell *vc, ViewCellsStatistics &vcStat); 284 311 312 313 /** Get costs resulting from each merge step. */ 314 void GetCostFunction(vector<float> &costFunction); 315 285 316 286 317 /** Returns optimal set of view cells for a given number of view cells.
Note: See TracChangeset
for help on using the changeset viewer.