#4 Ponto médio: questão da falta de atualização de posição

Open
1 jaar geleden werd geopend door leo · 2 opmerkingen
leo reageerde 1 jaar geleden

Após criar o ponto médio (e.g. entre A e B), ao mover A ou B, o "suposto" médio não é atualizado.

É necessário que o ponto esteja na lista de objetos (por ordem de criação) para ao mover qualquer coisa ele ser recomputado (via "update").

Assim, ao mover A, a lista é visitada (ordem "fifo"), assim o ponto A é redesenhado na posição correta, ao chegar ao C:=MidPoint(A,B), ele deveria ser redesenhado na "nova" posição (ocasionada pela mudança de a).

Após criar o ponto médio (e.g. entre A e B), ao mover A ou B, o "suposto" médio não é atualizado. É necessário que o ponto esteja na lista de objetos (por ordem de criação) para ao mover qualquer coisa ele ser recomputado (via "update"). Assim, ao mover A, a lista é visitada (ordem "fifo"), assim o ponto A é redesenhado na posição correta, ao chegar ao C:=MidPoint(A,B), ele deveria ser redesenhado na "nova" posição (ocasionada pela mudança de a).
leo reageerde 1 jaar geleden
Poster

Updates in order to correct midpoint object. Was creating 2 objects, a segment-line (that as the MiddlePoint instance) and a Point (that actually was the midpoint). Now is folloing the iGeom model of a single object for each GeometricObject. To keep the creating of midpoint under "selection+action" mode, was necessary to select the MiddlePoint (in "selector.js"). TODO 1: the MiddlePoint reading is not working TODO 2: the update of MiddlePoint's dependent objects is NOT working

./app/components/line-segment-component/drawers/line-segment-drawer.js
./app/components/line-component/drawers/line-drawer.js
./app/components/intersection-component/models/intersection-model.js
./app/components/middle-point/models/middle-point-model.js
./app/components/middle-point/drawers/middle-point-drawer_orig.js
./app/components/middle-point/drawers/middle-point-drawer.js
./app/core/parser/parser-orchestrator.js
./app/core/parser/file-parser.js
./app/core/drawers/drawer-aggregator.js
./app/core/application/selector.js

Updates in order to correct midpoint object. Was creating 2 objects, a segment-line (that as the MiddlePoint instance) and a Point (that actually was the midpoint). Now is folloing the iGeom model of a single object for each GeometricObject. To keep the creating of midpoint under "selection+action" mode, was necessary to select the MiddlePoint (in "selector.js"). TODO 1: the MiddlePoint reading is not working TODO 2: the update of MiddlePoint's dependent objects is NOT working ./app/components/line-segment-component/drawers/line-segment-drawer.js<br/> ./app/components/line-component/drawers/line-drawer.js<br/> ./app/components/intersection-component/models/intersection-model.js<br/> ./app/components/middle-point/models/middle-point-model.js<br/> ./app/components/middle-point/drawers/middle-point-drawer_orig.js<br/> ./app/components/middle-point/drawers/middle-point-drawer.js<br/> ./app/core/parser/parser-orchestrator.js<br/> ./app/core/parser/file-parser.js<br/> ./app/core/drawers/drawer-aggregator.js<br/> ./app/core/application/selector.js
leo reageerde 1 jaar geleden
Poster

Fixed reading/writing with midpoint object (GEO files). Changed: ./app/core/enums/elements-class-enum.js ./app/core/parser/file-parser.js ./app/core/parser/parser-orchestrator.js ./app/core/drawers/drawer-aggregator.js ./app/core/application/selector.js ./app/core/application/header-menu.js ./app/components/intersection-component/models/intersection-model.js ./app/components/middle-point/models/middle-point-model.js ./app/components/line-component/drawers/line-drawer.js

Fixed reading/writing with midpoint object (GEO files). Changed: ./app/core/enums/elements-class-enum.js ./app/core/parser/file-parser.js ./app/core/parser/parser-orchestrator.js ./app/core/drawers/drawer-aggregator.js ./app/core/application/selector.js ./app/core/application/header-menu.js ./app/components/intersection-component/models/intersection-model.js ./app/components/middle-point/models/middle-point-model.js ./app/components/line-component/drawers/line-drawer.js
Sign in to join this conversation.
Geen label
Geen mijlpaal
Geen verantwoordelijke
1 deelnemers
Laden...
Annuleren
Opslaan
Er is nog geen inhoud.