MantisBT - Community
View Issue Details
0024339Community[OCCT] OCCT:Samplespublic2013-11-11 12:072013-12-19 13:59
Pawel 
bugmaster 
normalminor 
closedfixed 
WindowsVC++ 200864 bit
[OCCT] 6.7.0 
[OCCT] 6.7.0[OCCT] 6.7.0 
Not needed
0024339: Vectors not displayed correctly in MFC samples [6.7.0 Beta]
MFC Geometry samples displays vectors as "cones" only. The line is missing. Please consult the attached picture.
No tags attached.
png vector_660.png (68,994) 2013-11-11 12:08
https://tracker.dev.opencascade.org/
png vector_670.png (75,776) 2013-11-11 12:08
https://tracker.dev.opencascade.org/
Issue History
2013-11-11 12:07PawelNew Issue
2013-11-11 12:07PawelAssigned To => bugmaster
2013-11-11 12:08PawelFile Added: vector_660.png
2013-11-11 12:08PawelFile Added: vector_670.png
2013-11-12 16:32kgvAssigned Tobugmaster => aba
2013-11-12 16:32kgvStatusnew => assigned
2013-11-14 17:22abaNote Added: 0026633
2013-11-14 17:22abaAssigned Toaba => kgv
2013-11-14 17:22abaStatusassigned => resolved
2013-11-14 17:29kgvNote Added: 0026634
2013-11-14 17:29kgvAssigned Tokgv => bugmaster
2013-11-14 17:29kgvStatusresolved => reviewed
2013-11-15 06:52mkvAssigned Tobugmaster => mkv
2013-11-15 11:42bugmasterAssigned Tomkv => bugmaster
2013-11-15 11:52bugmasterNote Added: 0026648
2013-11-15 11:52bugmasterAssigned Tobugmaster => aba
2013-11-15 11:52bugmasterStatusreviewed => assigned
2013-11-18 11:43abaStatusassigned => resolved
2013-11-18 11:45abaNote Added: 0026687
2013-11-18 11:45abaAssigned Toaba => bugmaster
2013-11-18 11:45abaStatusresolved => reviewed
2013-11-19 11:40bugmasterNote Added: 0026731
2013-11-19 11:40bugmasterAssigned Tobugmaster => aba
2013-11-19 11:40bugmasterStatusreviewed => assigned
2013-11-19 19:10abaNote Added: 0026772
2013-11-19 19:10abaAssigned Toaba => kgv
2013-11-19 19:10abaStatusassigned => resolved
2013-11-19 20:44kgvNote Added: 0026774
2013-11-19 20:44kgvAssigned Tokgv => bugmaster
2013-11-19 20:44kgvStatusresolved => reviewed
2013-11-20 15:46bugmasterAssigned Tobugmaster => apn
2013-11-20 18:23apnNote Added: 0026812
2013-11-20 18:23apnTest case number => Not needed
2013-11-20 18:23apnAssigned Toapn => bugmaster
2013-11-20 18:23apnStatusreviewed => tested
2013-11-25 13:17bugmasterChangeset attached => occt master e5b32824
2013-11-25 13:17bugmasterStatustested => verified
2013-11-25 13:17bugmasterResolutionopen => fixed
2013-12-19 13:50bugmasterStatusverified => closed
2013-12-19 13:59bugmasterFixed in Version => 6.7.0
2014-01-11 11:59abvCategoryOCCT Release:MFC => OCCT Release:Samples
2014-01-11 12:02abvCategoryOCCT Release:Samples => OCCT:Samples

Notes
(0026633)
aba   
2013-11-14 17:22   
ISession_Direction classes that provide visualization of directions were rewritten without using DsgPrs_LengthPresentation class.

DsgPrs_LengthPresentation is supposed to be used for length dimensions and relations presentation computing and uses dimension aspect. Its default value of arrow length differs from the one in drawer's arrow aspect.

Dear kgv, please review branch CR24339.
(0026634)
kgv   
2013-11-14 17:29   
No remarks, please test MFC samples (OCCT sources are unaffected).
(0026648)
bugmaster   
2013-11-15 11:52   
1>------ Build started: Project: Modeling, Configuration: Release Win32 ------
1>Compiling...
1>ISession_Direction.cpp
1>..\..\..\src\ISession_Direction.cpp(44) : error C2065: 'Handle_Graphic3d_ArrayOfSegments' : undeclared identifier
1>..\..\..\src\ISession_Direction.cpp(44) : error C2146: syntax error : missing ';' before identifier 'aPrims'
1>..\..\..\src\ISession_Direction.cpp(44) : error C2065: 'aPrims' : undeclared identifier
1>..\..\..\src\ISession_Direction.cpp(44) : error C2061: syntax error : identifier 'Graphic3d_ArrayOfSegments'
1>..\..\..\src\ISession_Direction.cpp(45) : error C2065: 'aPrims' : undeclared identifier
1>..\..\..\src\ISession_Direction.cpp(45) : error C2227: left of '->AddVertex' must point to class/struct/union/generic type
1> type is ''unknown-type''
1>..\..\..\src\ISession_Direction.cpp(46) : error C2065: 'aPrims' : undeclared identifier
1>..\..\..\src\ISession_Direction.cpp(46) : error C2227: left of '->AddVertex' must point to class/struct/union/generic type
1> type is ''unknown-type''
1>..\..\..\src\ISession_Direction.cpp(47) : error C2653: 'Prs3d_Root' : is not a class or namespace name
1>..\..\..\src\ISession_Direction.cpp(47) : error C2227: left of '->SetPrimitivesAspect' must point to class/struct/union/generic type
1> type is ''unknown-type''
1>..\..\..\src\ISession_Direction.cpp(47) : error C2027: use of undefined type 'Prs3d_LineAspect'
1> D:\builds\vc9\CR24339-master-occt\inc\Handle_Prs3d_LineAspect.hxx(23) : see declaration of 'Prs3d_LineAspect'
1>..\..\..\src\ISession_Direction.cpp(47) : error C2039: 'Aspect' : is not a member of 'Handle_Prs3d_LineAspect'
1> D:\builds\vc9\CR24339-master-occt\inc\Handle_Prs3d_LineAspect.hxx(25) : see declaration of 'Handle_Prs3d_LineAspect'
1>..\..\..\src\ISession_Direction.cpp(47) : error C3861: 'CurrentGroup': identifier not found
1>..\..\..\src\ISession_Direction.cpp(48) : error C2653: 'Prs3d_Root' : is not a class or namespace name
1>..\..\..\src\ISession_Direction.cpp(48) : error C2227: left of '->AddPrimitiveArray' must point to class/struct/union/generic type
1> type is ''unknown-type''
1>..\..\..\src\ISession_Direction.cpp(48) : error C2065: 'aPrims' : undeclared identifier
1>..\..\..\src\ISession_Direction.cpp(48) : error C3861: 'CurrentGroup': identifier not found
1>..\..\..\src\ISession_Direction.cpp(50) : error C2653: 'Prs3d_Arrow' : is not a class or namespace name
1>..\..\..\src\ISession_Direction.cpp(50) : error C2065: 'aPrs' : undeclared identifier
1>..\..\..\src\ISession_Direction.cpp(50) : error C3861: 'Draw': identifier not found
1>Build log was saved at "file://d:\builds\vc9\CR24339-master-occt\samples\mfc\standard\02_Modeling\adm\win\vc9\win32\obj\BuildLog.htm" [^]
1>Modeling - 20 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
(0026687)
aba   
2013-11-18 11:45   
Compilation errors were corrected.
Dear Bugmaster, please retest.
(0026731)
bugmaster   
2013-11-19 11:40   
Problem:
Samples : Viewer3d
Button : Axis
(0026772)
aba   
2013-11-19 19:10   
The branch CR24339 was updated:
1) The branch was rebased on the branch CR24355 to avoid merge conflicts.
2) ISession_Direction::SetLineAspect() method was added to display vectors with proper style (as it was before)
3) ISession_Direction class in Modeling sample was corrected to avoid inconsistent behavior.

Dear kgv, please review.
(0026774)
kgv   
2013-11-19 20:44   
Please test updated patch.
(0026812)
apn   
2013-11-20 18:23   
Problem was solved. Vectors are displayed correctly. There are no warnings (W4) on vc8, vc9, vc10, vc11.