30 #include "hic_types.h"
34 class HOutputHandlerOptions;
41 enum AbsoluteWindowType
69 void AddRegion(
HC_KEY originalshell,
HC_KEY newshell,
int regionnum,
bool check =
true);
71 int GetRegionsFromOriginalShell(
HC_KEY originalshell,
HC_KEY **newshells,
int ®ionnum);
72 void BuildSegmentTreeRecursive(
HC_KEY okey,
HC_KEY nkey);
73 void MapSegmentTree(
HC_KEY modelkey);
74 void AddSegmentMapping(
HC_KEY originalshell,
HC_KEY segmentkey);
76 struct vhash_s * m_RegionToShellHash;
77 struct vhash_s * m_ShellToRegionHash;
78 struct vhash_s * m_ShellToSegmentHash;
107 void Set(
int first,
int second) {
118 bool operator<(
HShellEdge const & rhs)
const {
119 if(m_iFirst != rhs.m_iFirst)
120 return m_iFirst < rhs.m_iFirst;
121 return m_iSecond < rhs.m_iSecond;
142 int GetPointCount()
const ;
145 int GetEdgeCount()
const ;
150 HShellEdge const GetEdge(
int const iEdgeIndex)
const;
154 void OpenEdge(
int const iEdgeIndex)
const;
158 void CloseEdge()
const;
178 delete [] m_pRegionFlist;
182 int GetFaceCount()
const;
195 int m_iRegionFlistLength;
220 int GetFaceCount()
const;
225 int GetFaceFlistIndex(
int index)
const;
233 int GetFlistLen()
const ;
235 int const * GetFlist()
const ;
238 void GetFlist (
int *flist)
const ;
243 mutable int * m_pFaceIndexes;
268 delete [] point_list;
269 delete [] normal_list;
271 delete [] region_list;
304 m_totalnumfaceslen = 0;
325 m_totalnumfaceslen = 0;
342 HC_KEY Insert(
int plen,
HPoint *points,
int flen,
int *flist, HC_KEY insertkey = INVALID_KEY);
350 HC_KEY Show(
int *plen,
HPoint **points,
int *flen,
int **flist);
358 void TransformPoints(
float *matrix);
364 HC_KEY Optimize(
char *options);
370 HC_KEY Optimize2(
char *options);
372 void MakePolygon(
int facelen,
int *face,
HPoint *points);
377 void OpenOwnerSegment();
381 void BeginFaceIteration();
386 int GetFace(
int facenum,
int **face);
391 int NextFace(
int **face);
398 void CalculateFaceCenter(
int *face,
int flen,
HPoint *mid);
405 void AddPoints(
HPoint *points,
int pnum,
HPoint *param = 0,
HPoint *normals = 0,
bool AddImmediatly=
false);
412 void AddFace(
int *face,
int fnum,
int regionnum,
HPoint *points,
HPoint *normals = 0,
bool AddImediatly=
false);
419 void AddFaceDirect(
int *face,
int fnum,
bool reverse =
false,
bool AddImmediatly=
false);
426 void AddFace(
HPoint *points,
int fnum,
bool AddImmediatly=
false);
431 void Set(HC_KEY key);
438 void Regenerate(HC_KEY newowner = INVALID_KEY,
bool makeSegment =
true,
bool regenerate =
false);
443 void GrowArrays(
int fnum);
449 void GrowPointArray(
int fnum,
bool gorwvparams =
false,
bool grownormals =
false);
451 void GrowPointArray2(
int fnum,
bool growparamarray =
false,
bool grownormalarray =
false,
bool growfnarray =
false,
bool growcolorarray =
false);
452 void AddNextFaceWithDistinctNormals(
HPoint const * points,
HPoint const * normals,
int const * face1,
int const * face2,
int fnum);
453 void AddNextFaceWithDistinctNormalsAndTexture(
HPoint const * points,
HPoint const * normals,
HPoint const * texcor,
int const * face1,
int const *face2,
int const *face3,
int fnum);
454 void AddNextFaceWithDistinctNormalsAndColor(
HPoint const *points,
HPoint const *normals,
int const *face1,
int const *face2,
HPoint *face3,
int fnum);
457 void BeginAddFaces(
int pnum);
464 void GrowFaceArray(
int fnum);
467 void SubdivideOneQuadFace(
int *face,
HShellWrapper &wrapper,
bool generateIsolines,
int *facecolorlist,
int &fclnum);
470 void SubdivideOneQuadFace2(
int *face);
475 void SubdivideQuadFaces(
bool GenerateIsolines);
480 void SetVertexColors(
HPoint *color);
484 void ShowVertexColors(
HPoint *color);
489 void SetVertexColors(
float *findex);
493 void ShowVertexColors(
float *color);
499 void MakeLod(
int lodnum,
int percent);
506 void ReplaceWithParameters(
int plen,
HPoint *points,
int flen,
int *flist,
HPoint *normals = 0,
float *params = 0,
int paranum = 3,
HPoint *vcolors = 0,
bool emptyshell =
false);
507 void ReplaceWithParameters(
int plen,
HPoint *points,
int flen,
int *flist,
HPoint *normals,
float *params,
int paranum,
bool emptyshell);
508 void Replace(
int plen,
HPoint *points,
int flen,
int *flist,
HPoint *normals = 0,
bool emptyshell =
false);
510 void SetFaceRegion(
int regionnum);
512 void SetEmptyShell(HC_KEY segmentkey,
bool MakeSegment);
530 int m_totalnumfaceslen;
551 char projection[128];
554 projection[0] =
'\0';
564 bool CameraDifferent(
HCamera &cam);
569 bool CameraDifferentByAngle(
HCamera &cam);
578 HC_Show_Camera (&position, &target, &up_vector, &field_width, &field_height, projection);
584 HC_Set_Camera (&position, &target, &up_vector, field_width, field_height, projection);
603 inline void Set(
double X,
double Y,
double Z,
double W) { x=X, y=Y, z=Z, w=W; }
628 HShellVertexData():m_VertexCount(0), m_pFIndexArraySize(0), m_pFIndexArray(0), m_Key(INVALID_KEY){
638 void SetKey(
HC_KEY const key);
641 char const *
const GetType()
const {
646 int const GetVertexCount()
const {
647 return m_VertexCount;
651 HC_KEY const GetKey()
const {
656 int const GetFIndexDataSize()
const {
657 return m_pFIndexArraySize;
661 float const *
const GetFIndexData()
const {
662 return m_pFIndexArray;
667 void GetFIndexData(
float *data)
const;
669 void SetFIndexData(
int const size,
float const *
const data);
675 int m_pFIndexArraySize;
676 float *m_pFIndexArray;
761 const char * Show_One_Net_User_Option(
const char * which);
775 const char * Show_Net_User_Options();
781 H_SAFE_DELETE_ARRAY(m_data);
797 static const float PI;
819 static void Find_Relative_Path(HC_KEY from_seg_key, HC_KEY to_seg_key,
char * path);
824 static float GetTime();
831 static void ClampPointToWindow (
HPoint * point);
869 static HC_KEY InsertRectangle (
const char * seg,
float x0,
float y0,
float x1,
float y1,
float z = 0.0f,
bool fill =
false);
886 static void InsertArrow(
float stick_length,
float tip_length,
float stick_radius,
float arrow_radius,
const char *text,
const char *stick_color,
const char *tip_color,
int num_sides = 6,
float tip_falloff = 0.05,
bool reverse =
true);
894 static void ComputeDoublePrecisionCrossProduct(
double * vector1,
double * vector2,
double * up);
902 static double ComputeDoublePrecisionDotProduct(
double * vector1,
double * vector2);
909 static double ComputeDoublePrecisionVectorLength(
double * vector1);
917 static void GetViewplaneVectors(HC_KEY segment_key,
double * view,
double * up);
923 static void NormalizeDoublePrecisionVector(
double* vector1);
932 static bool PointsEqual(
HPoint * point1,
HPoint * point2);
945 static bool CreateAxisCircle (
HPoint const & center,
float radius,
int axis,
bool convert =
true);
954 static void RotateToVector(
HPoint start,
HPoint end,
bool doTranslation =
true);
971 static void SmoothTransition(
const HPoint &co,
const HPoint &to,
const HPoint &uo,
float fieldwidtho,
float fieldheighto,
const HPoint &cn,
const HPoint &tn,
const HPoint &un,
float fieldwidthn,
float fieldheightn,
HBaseView *view);
988 static bool CamerasEqual(
const HCamera &camera1,
const HCamera &camera2);
997 static void ComputeVectorToVectorRotationMatrix(
float *matrix,
HPoint v1,
HPoint v2);
1007 static bool ExtractRGB(
char *text,
float &r,
float &g,
float &b);
1019 static void TransitionQuaternion(
float *quat_old,
float *quat_new,
float t,
float *qt);
1026 static void MatrixToQuaternion(
float *matrix,
float *quaternion);
1033 static void QuaternionToMatrix(
float * quaternion,
float *matrix);
1043 static void SmoothQuaternionTransition(
HBaseView *m_pView,
char *old_seg,
char *new_seg,
int num_of_transitions);
1052 static void SmoothMatrixTransition(
HBaseView *m_pView, HC_KEY seg_key,
float *new_matrix);
1063 static void MultiSmoothTransitions(
HBaseView *m_pView,
int num_keys, HC_KEY *seg_key,
float *new_matrix,
HCamera *new_camera = 0);
1070 static HPoint GetCentroid(HC_KEY seg_key);
1078 static HPoint GetTransformedCentroid(HC_KEY seg_key,
float * matrix = 0);
1087 static void URIencode(
const char * in_string, MVO_POINTER_SIZED_UINT n,
char * out_buffer);
1095 static void URIdecode(
const char * in_string,
char * out_buffer, MVO_POINTER_SIZED_UINT * n);
1105 static void GetCameraFromMatrix(
float *matrix,
HPoint *target,
HPoint *position,
HPoint *up_vector,
HPoint *translation);
1115 static void GetMatrixFromCamera(
HPoint target,
HPoint position,
HPoint up_vector,
HPoint translation,
float *matrix);
1151 static void GetCameraFromGLFrustum(
double const left,
double const right,
double const bottom ,
double const top,
double const near_z,
double const far_z,
bool const perspective,
1152 HPoint &pos,
HPoint &target,
HPoint &up,
char * projection,
double &width,
double &height,
double &near_limit );
1161 static bool PushAttribute(
const char *attName);
1171 static void PushAttribute(
const char *attName,
const char *attText);
1180 static bool PopAttribute(
const char *attName);
1192 static bool ModifyPushedAttribute(
const char *attName,
const char *newStyle);
1200 static bool ShowPushedAttribute(
const char *attName,
HUserOptions& attText);
1214 static void Recursive_Merge_Shells(
HShell *total_info,
HShell *max_info,
bool do_recurse,
bool delete_orig_shells =
false,
bool insert_null_lods =
false );
1222 static HC_KEY Merge_Shells(
bool do_recurse,
bool delete_orig_shells =
false ,
bool optimize_shell =
true,
bool generate_regions =
false);
1231 static HC_KEY Merge_Shells_Generate_Regions(
int num_shells, HC_KEY * shell_keys,
bool delete_orig_shells =
false );
1242 static void Generate_LODs(
bool do_recurse =
true,
bool delete_orig_shells =
false,
bool insert_null_lods =
false,
int n_lod_levels = 2,
float reduction_ratio = 0.20 );
1251 static bool Segment_Shell_Allocate(
HShell *total_info,
HShell *max_info,
bool do_recurse );
1260 static void Shell_Search(
HShell *total_info,
HShell *max_info,
bool do_recurse );
1274 static void OptimizeSegmentTree(HC_KEY old_seg_key, HC_KEY *new_seg_key,
bool transform_shells =
true,
bool merge_shells =
true,
bool create_shell_regions =
false);
1285 static void CountShellData(HC_KEY shell_key,
int * faces,
int * vertices,
int * triangles,
int * tristrips = 0);
1293 static void FindFileNameExtension(
const char * filename_in,
char * ext_out,
int size = -1);
1301 static void FindFileNameExtension(__wchar_t
const *
const filename_in, __wchar_t * ext_out,
int size = -1);
1302 #ifdef H_USHORT_OVERLOAD
1303 static void FindFileNameExtension(
unsigned short const *
const filename_in,
unsigned short * ext_out,
int size = -1){
1304 FindFileNameExtension((
wchar_t const *
const)filename_in, (
wchar_t*)ext_out, size);
1312 static void FindUnicodeFileNameExtension(
const unsigned short * filename_in,
char * ext_out);
1321 static void FindFileNameAndDirectory(
const char * filename_in,
char * dir_out,
char * filename_out);
1329 static void FindFileNameAndDirectory(__wchar_t
const * filename_in, __wchar_t * dir_out, __wchar_t * filename_out);
1341 static const char* extra_pointer_format();
1345 static HC_KEY CreateScaleIndependentSegment(
const char *segname,
bool SetCallback =
true);
1350 static HC_KEY GetScaleIndependentGeomSegmentKey(HC_KEY segkey);
1355 static void SetScaleIndependentGeomPosition(HC_KEY segkey,
float x,
float y,
float z);
1360 static void GetScaleIndependentGeomPosition(HC_KEY segkey,
float &x,
float &y,
float &z);
1365 static void RegisterCallbacks();
1373 static bool IsModelKey(HC_KEY modelkey, HC_KEY objectkey);
1382 static HC_KEY UserOptionExists(HC_KEY key,
const char *attrib,
char *result);
1400 static void InsertRotatedArrow(
float stick_length,
float tip_length,
float stick_radius,
float tip_radius,
float distance,
int adelta,
float rotang,
const char *stick_color,
const char *tip_color,
int num_sides,
float tip_falloff,
bool reverse);
1411 static int CalculateKeyPath(HC_KEY startkey,
HBaseView *view, HC_KEY *keyarray,
int maxarray);
1417 static bool SegmentExists(
const char *segment);
1421 static void UnsetAttributes();
1430 static int IsChildOf(HC_KEY owner, HC_KEY child, HC_KEY *klist = 0);
1437 static bool IsIdentityMatrix(
float* matrix);
1445 static void ComputeShellNormal(HC_KEY skey,
HPoint &tnormal);
1456 static HC_KEY SelectUnderCursor(
HBaseView *view,
float x,
float y,
bool doSelection =
true,
bool DeSelect =
false);
1469 static HC_KEY SmartSelectUnderCursor(
HBaseView *view,
float x,
float y,
bool doSelection =
true,
bool DeSelect =
false);
1478 static bool ShowOneHeuristic(
const char *type,
char *res = 0);
1485 static bool ShowOneRenderingOption(
const char *type,
char *res = 0);
1496 static float EaseInEaseOut(
float t,
float a,
float b,
float c);
1502 static void UnwindIncludes(HC_KEY &key);
1510 static void UnwindIncludes(HC_KEY &newkey, HC_KEY *keys,
int count);
1519 static bool SafeSetUserOption(
const char * opt);
1527 static bool SafeShowUserOption(
char * opt);
1534 static void ProjectShell(HC_KEY shellkey);
1542 static HC_KEY MergeShells(HC_KEY shell1, HC_KEY shell2);
1549 static void ShowModellingMatrix(
float *segment_modelling_matrix);
1557 static void ConvertLocalPixelsToLocalWindow(
HBaseView * view,
HPoint *in_system ,
HPoint *out_system = 0);
1566 static HC_KEY GrabSegment(HC_KEY key);
1572 # define MakeSegment(key) GrabSegment(key)
1579 static void RenameSegment(HC_KEY segkey,
const char *newname);
1599 static void ShowNormals(HC_KEY shellkey,
float normallength);
1606 static bool IsSegmentKey(HC_KEY key);
1614 static int FindContents(HC_KEY &key);
1622 static int CalculateMajorAxis(
HBaseView *view);
1632 static HC_KEY FindOneObject(
const char *type,
bool l = 0);
1638 static void CloseAllSegments(HC_KEY endkey = INVALID_KEY);
1644 static void ReadjustTarget(
HBaseView *view);
1650 static bool GetAllowAnimation(HC_KEY key);
1654 static void SuppressAnimation();
1663 static int FindFaceByIndex(
int findex,
int *flist,
int flen);
1671 static bool ShowOneUserOption(
const char *option,
char *res);
1685 static void NameSegments(HC_KEY &key,
HBaseView *view);
1692 static void MoveToTemp(HC_KEY movekey, HC_KEY tempkey);
1704 static void ShowContentsWithPath(
const char * entitytypes,
struct vlist_s **ret_pathlist,
bool storePath =
false,
bool includeIncludes =
true,
bool filterIncludes =
true);
1712 static int ustrlen(
unsigned short *text);
1723 static bool RLECompress(
int const in_len,
1724 unsigned char const *
const in_buf,
1726 unsigned char *
const out_buf);
1737 static bool ZlibCompress(
int const in_len,
1738 unsigned char const *
const in_buf,
1740 unsigned char *
const out_buf);
1751 static bool ZlibDecompress(
int const in_len,
1752 unsigned char const *
const in_buf,
1754 unsigned char *
const out_buf);
1760 static unsigned short *uconvert(
const char *text);
1772 static bool BuildIncludePath(HC_KEY objectkey,
const HC_KEY *includelist,
int ilength, HC_KEY *fullpath,
int *fplength, HC_KEY matchkey = INVALID_KEY);
1780 static void BuildIncludePathFromSelection(
HSmartSelItem *sitem,
int &plen, HC_KEY *fullpath);
1791 static void MakeViewSnapshot(
HBaseView * view,
int width,
int height,
char ** data);
1798 static void MakeViewSnapshot(
HBaseView * view, HC_KEY image_key);
1808 static int ConstrainToVector(
const float *matrix_in,
const HVector &vector,
float *matrix_out ) ;
1817 static void Camera_To_Transform (
HCamera *camera ,
float *pos,
float *projection_matrix,
float *complete_matrix);
1828 static void LocalPixelsToWorld(
HCamera *camera,
bool righthanded,
float xres,
float yres,
int xwpix,
int ywpix,
float *result);
1835 static float ComputeAngleBetweenVector(
HPoint p1,
HPoint p2);
1843 static int strlen16(
const unsigned short *p16);
1864 static long ClipPolygonAgainstPlane(
long vertexCount,
const HPoint *vertex,
1865 const float *plane,
HPoint *result,
bool *noCut = 0);
1873 static HFileOutputResult TwoPassPrint(
const char *driver, HOutputHandlerOptions *options);
1882 static HC_KEY OpenSegmentFromKey(HC_KEY key,
char *segment);
1896 static bool IsPointInsideAllEdges(
const float *pt,
const float *points1,
1897 int len,
const int *face1,
const float *plane1,
float fudge );
1921 static void MergePointsIntoShell(
int num_shell_points,
HPoint *plist1,
int num_shell_facelist,
int *flist1,
1922 int num_merge_points,
HPoint *merge_points,
HPoint *merge_vectors,
1923 float tolerance,
bool AddExtraPoints,
int *newpoints,
int *newpointslen);
1940 static void SubdivideShells(HC_KEY sskey, HC_KEY startkey, HC_KEY newkey,
int numx,
int numy,
int numz,
ShellToRegionMapper *mapper = 0,
bool DoCut =
true,
bool DeleteOriginalShells =
false,
bool breakShells =
false);
1943 static void MergePolylines();
1944 static void CreateZebraStripeTexture(
int width,
int height,
int stripwidth,
bool horizontal,
HPixelRGB colorstripes,
HPixelRGB colorbackground);
1953 static void ascii_to_unicode(
char const *ascii,
unsigned short *unicode);
1962 static void unicode_to_ascii(
unsigned short const *unicode,
char *ascii);
1972 static void BatchRead(
HBaseModel * model,
const char * directory,
const char * extension);
1991 static void CalculateCornerImagePosition(
HBaseView *view,
int iwidth,
int iheight, HWindowCorner corner,
float &posx,
float &posy);
1993 static void DecipherTextureString(
char *texdef,
char *Source,
bool *DownSampling = 0,
bool *DownSamplingSet = 0,
char *ParameterizationSource = 0,
1994 char *InterpolationFilter = 0,
char *DecimationFilter = 0,
char *Layout = 0,
char *Tiling = 0,
bool *ValueScaleSet = 0,
1995 bool *ValueScale = 0,
float *ValueScaleMin =0,
float *ValueScaleMax = 0,
char *BlendingMode = 0);
1999 static void scale_segment (HIC_Rendition *rendition,HIC_Segment_Info * geo3);
2000 static void activity_change (HIC_Segment *seg,
int old_activity,
int new_activity);
2001 static bool RestoreAttributeFromOption(
const char *attName,
HUserOptions& attText);
2002 static void ReplaceCharacter(
char *text,
char orig,
char target);
2003 static bool SetAttribute(
const char *attName,
const char *attText);
2004 static bool ShowAttribute(
const char *attName,
char *attText);
2005 static void ShowContentsWithPathAddEntity(HC_KEY key,
struct vlist_s *pathlist,
int level, HC_KEY *patharray,
bool storePath);
2006 static void ShowContentsWithPathRecursive(HC_KEY key,
const char *entitytypes,
struct vlist_s *pathlist, HC_KEY *patharray,
int level,
bool storePath,
bool includeIncludes,
bool filterIncludes);
2007 static void SubdivideOneShell(
HShellWrapper &myshell,
int numx,
int numy,
int numz,
HPoint &totalmin,
2017 m_SegmentKey = segmentKey;
2019 strcpy(m_Units, units);
2035 m_pIncludeList =
new HC_KEY[includelistlength];
2036 for (
int i=0;i<includelistlength;i++)
2037 m_pIncludeList[i] = includelist[i];
2038 m_IncludeListLength = includelistlength;
2042 delete [] m_pIncludeList;
2047 return (MakeHashKey(m_Key, m_IncludeListLength,m_pIncludeList));
2050 static long MakeHashKey(
HC_KEY key,
int includelength,
HC_KEY *includes)
2053 for (
int i=0;i<includelength;i++)
2055 hashkey+=includes[i];
2063 int m_IncludeListLength;
2081 delete [] m_pChildFaces;
2086 void Init(
int *flist);
2087 void MakeChildFaces(
int &addpoint,
HPoint *points,
bool AddExtraPoints,
int *newpoints,
int *newpointslen);
2088 void Divide(
int pnum,
HPoint *points);
2094 return FindHitFaceRecursive(p, normal, plist,respoint);
2096 bool CheckIfColinear(
HPoint *point);
2098 int GetLengthRecursive(
int l);
2103 return (GetLengthRecursive(0));
2107 int AddToFacelistRecursive(
int *start,
int l);
2110 int AddToFacelist(
int *start)
2112 return (AddToFacelistRecursive(start, 0));
2135 m_uvindex =
new int[len];
2136 m_fllen =
new int[len];
2137 m_flindex =
new int[len];
2138 for (
int i=0;i<len;i++)
2139 m_uvindex[i] = index[i];
2147 delete [] m_uvindex;
2149 delete [] m_flindex;
2166 void AddColorPiece(
int *index,
int len,
int col);
2167 ColorPiece * FindMatch(
int col,
int ii,
int ii2,
int &rpos,
int &rlen,
bool &reverse);
2169 struct vlist_s* m_ColorPieceList;
2179 static void ColorizePointCloud(
HC_KEY const segment);
2188 AbsoluteWindowType ypos_type = RelativeTop, AbsoluteWindowType width_type = RelativeLeft,
2189 AbsoluteWindowType height_type = RelativeTop,
bool sb =
false);
2191 void DecipherOptions();
2192 void AdjustX(
float invalue, AbsoluteWindowType wt,
float &outvalue);
2193 void AdjustY(
float invalue, AbsoluteWindowType wt,
float &outvalue);
2196 static bool SetWindow(
HBaseView *view,
float xpos,
float ypos,
float width,
float height, AbsoluteWindowType xpos_type = RelativeLeft,
2197 AbsoluteWindowType ypos_type = RelativeTop, AbsoluteWindowType width_type = RelativeLeft,
2198 AbsoluteWindowType height_type = RelativeTop,
bool sb =
false);
2199 bool IsPositionInWindow(
float x,
float y);
2200 static bool IsPositionInWindow(
HBaseView *view,
float x,
float y);
2201 static void CalculateLocalWindowPos(
HBaseView *view,
float x,
float y,
float &xout,
float &yout);
2202 void CalculateLocalWindowPos(
float x,
float y,
float &xout,
float &yout);
2203 static void CalculateOuterWindowPos(
HBaseView *view,
float x,
float y,
float &xout,
float &yout);
2204 void CalculateOuterWindowPos(
float x,
float y,
float &xout,
float &yout);
2213 AbsoluteWindowType m_xpos_type;
2214 AbsoluteWindowType m_ypos_type;
2215 AbsoluteWindowType m_width_type;
2216 AbsoluteWindowType m_height_type;
2218 bool m_bShowBackground;
2276 const wchar_t* Show_One_Net_Unicode_Option(
const __wchar_t* which);
2278 const unsigned short * Show_One_Net_Unicode_Option(
const unsigned short * which);
2293 const __wchar_t* Show_Net_Unicode_Options();
2298 H_SAFE_DELETE_ARRAY(m_data);
2314 m_edgekey = edgekey;
2315 m_vertex1 = INVALID_KEY;
2316 m_vertex2 = INVALID_KEY;
2346 struct vlist_s * m_CoEdgeList;
2354 struct vhash_s * m_FaceHash;
2356 struct vhash_s * m_EdgeHash;
2357 struct vhash_s * m_VertexHash;
2367 HC_KEY FindVertex(
void *vertexid);
2371 BREP_Face *GetCurrentFace() {
return m_CurrentFace; }
2375 class H_FORMAT_TEXT;
2380 H_FORMAT_TEXT * m_dvr;
2387 operator char const* ()
const;
2399 char const * getOption(
char const * option)
const;
The HPixelRGB class is the data type of a rgb pixel.
Definition: HGlobals.h:478
HShellWrapper()
Definition: HUtility.h:313
The HShellObject class is a simple wrapper for a shell.
Definition: HUtility.h:204
int point_list_len
The length of the point list,.
Definition: HUtility.h:273
int m_facepointer
Definition: HUtility.h:525
double w
The knot value of a B-Surface vertex.
Definition: HUtility.h:599
int region_count
The number of regions in the shell.
Definition: HUtility.h:281
HShellWrapper(HC_KEY key)
Definition: HUtility.h:297
Definition: HUtility.h:2013
The HUtility class contains a set of utility functions and data structures used widely in MVO classes...
Definition: HUtility.h:793
Definition: HUtility.h:2130
static const float PI
default=3.1415926f
Definition: HUtility.h:797
Definition: HUtility.h:2325
Definition: HUtility.h:2350
char * m_data
actual char* to the user options
Definition: HUtility.h:729
Definition: HUtility.h:2184
void Show_One_User_Option(const char *type, char *value)
Definition: HUtility.h:2174
void Show_Unicode_Options(unsigned short *options)
wchar_t * m_data
actual char* to the user options
Definition: HUtility.h:2246
The HCamera class is the data type of a HOOPS Camera Attribute.
Definition: HUtility.h:543
HPoint * point_list
The list of vertices that define the shell.
Definition: HUtility.h:274
void Show()
Definition: HUtility.h:577
HPoint up_vector
The direction of up.
Definition: HUtility.h:548
bool valid
True if the object has been initialized.
Definition: HUtility.h:545
double y
The y-coordinate of a B-Surface vertex.
Definition: HUtility.h:597
The HShellRegion class is a simple wrapper for a shell's region.
Definition: HUtility.h:170
HVector * normal_list
The list of normal vectors associated with the shell.
Definition: HUtility.h:275
HC_KEY * patharray
Array of Keys.
Definition: HUtility.h:687
The HSmartSelItem - selection item which can handle instancing.
Definition: HSelectionItem.h:192
Definition: HUtility.h:2161
void Set(int first, int second)
Definition: HUtility.h:107
class HPoint HVector
The HVector class is the data type of a three-dimensional vector.
Definition: HGlobals.h:332
void EndFaceIteration()
Definition: HUtility.h:385
float field_height
The height of the field of view.
Definition: HUtility.h:550
int len
length of key array
Definition: HUtility.h:688
int face_count
The number of faces in the shell.
Definition: HUtility.h:279
int * m_Flist
The list that defines the configuration of the faces in the shell in relation to the points as descri...
Definition: HUtility.h:521
HC_KEY m_Key
The key of the shell.
Definition: HUtility.h:522
int m_plen
The number of points in the points list.
Definition: HUtility.h:515
Definition: HUtility.h:2069
The HUnicodeOptions class is a helper class which wraps up memory management for variable size Unicod...
Definition: HUtility.h:2242
double z
The z-coordinate of a B-Surface vertex.
Definition: HUtility.h:598
Definition: HUtility.h:65
The HUserOptions class is a helper class which wraps up memory management for variable size user opti...
Definition: HUtility.h:725
HPoint target
The area that the camera is directed at.
Definition: HUtility.h:547
void InvalidateCamera()
Definition: HUtility.h:559
HPolyline * m_pNextPolyline
A pointer to a single HPolyline object.
Definition: HUtility.h:616
int face_list_len
The length of the face list.
Definition: HUtility.h:277
int m_flen
The length of the face list.
Definition: HUtility.h:516
The HShellVertexData class encapsulates colormap index information associated with the vertices of a ...
Definition: HUtility.h:624
HPoint * m_pHPointArray
A pointer to an array of HPoint objects.
Definition: HUtility.h:615
int GetFirst() const
Definition: HUtility.h:100
int m_totalplen
Definition: HUtility.h:529
The HBaseModel class is used to store and manage model information.
Definition: HBaseModel.h:52
The HPoint class is the data type of a three-dimensional point.
Definition: HGlobals.h:126
The HBaseView class defines and manages a view of model information.
Definition: HBaseView.h:337
Definition: HUtility.h:2377
The HShell class is the data type of a HOOPS Shell.
Definition: HUtility.h:253
int m_length
length of current user option
Definition: HUtility.h:730
void HC_Show_Camera(HC_POINT *position, HC_POINT *target, HC_VECTOR *up, float *width, float *height, char *projection)
int * region_list
The list that defines the set of regions in the shell.
Definition: HUtility.h:282
void HC_Set_Camera(const HC_POINT *position, const HC_POINT *target, const HC_VECTOR *up, double width, double height, const char *projection)
Definition: HUtility.h:2028
void Show_One_Unicode_Option(const unsigned short *requestedOption, unsigned short *options)
The HShellFace class is a simple wrapper for a shell's face.
Definition: HUtility.h:133
int GetSecond() const
Definition: HUtility.h:102
static const float EH_Epsilon
default=0.01
Definition: HUtility.h:802
The HShellWrapper class is wraps shell information and provides methods to manipulate this informatio...
Definition: HUtility.h:290
The HShellEdge class is a simple wrapper for a shell's edge.
Definition: HUtility.h:90
HPoint position
The location of the camera.
Definition: HUtility.h:546
double x
The x-coordinate of a B-Surface vertex.
Definition: HUtility.h:596
void Set() const
Definition: HUtility.h:583
void Set(double X, double Y, double Z, double W)
Definition: HUtility.h:603
Definition: HUtility.h:2309
The HPlane class is the data type of a plane.
Definition: HGlobals.h:339
int m_PointCount
Number of points in the polyline.
Definition: HUtility.h:614
Definition: HUtility.h:2391
The HShowContentsWithPathType struct is used by HUtility to store a keypath.
Definition: HUtility.h:685
The HBSurfVertex class is the data type of a B-Surface vertex.
Definition: HUtility.h:593
int * face_list
The face list that defines how faces are formed in the shell.
Definition: HUtility.h:278
HC_KEY GetKey()
Definition: HUtility.h:354
HShellEdge(int iFirst=0, int iSecond=0)
Definition: HUtility.h:96
The HPolyline class is the data type for a three-dimensional polyline.
Definition: HUtility.h:611
Definition: HUtility.h:50
Definition: HUtility.h:2337
int m_length
length of current user option
Definition: HUtility.h:2247
void Show_User_Options(char *list)
float field_width
The width of the field of view.
Definition: HUtility.h:549
int m_totalflen
Definition: HUtility.h:527