Changeset 1688
- Timestamp:
- 08/06/19 12:58:44 (5 years ago)
- Location:
- XIOS/dev/dev_trunk_graph
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/dev_trunk_graph/inputs/vis2.html
r1686 r1688 216 216 217 217 nodes.update(allNode); 218 219 node = nodes.get(nodeSelected); 220 connectedEdgeArray = edges.get(network.getConnectedEdges(node.id)); 221 for (j = 0; j < connectedEdgeArray.length; j++) { 222 var edge = connectedEdgeArray[j]; 223 if (edge.from == node.id) { 224 edge.hidden = false; 225 } 226 227 } 228 edges.update(connectedEdgeArray); 218 229 219 230 allNode = nodes.get(); … … 895 906 }, 896 907 897 joinCondition: function(nodeOptions) {898 return nodeOptions.cid === 2;899 900 }901 902 908 903 909 }; -
XIOS/dev/dev_trunk_graph/src/filter/file_writer_filter.cpp
r1686 r1688 36 36 (*CWorkflowGraph::mapFilters_ptr_with_info)[this->filterID].attributes += "</br>file attributes : </br>" +this->field->file->record4graphXiosAttributes(); 37 37 (*CWorkflowGraph::mapFilters_ptr_with_info)[this->filterID].clusterID =1; 38 (*CWorkflowGraph::mapFilters_ptr_with_info)[this->filterID].distance = ++(data[0]->distance);38 (*CWorkflowGraph::mapFilters_ptr_with_info)[this->filterID].distance = data[0]->distance+1; 39 39 40 40 if(CXios::isClient && CWorkflowGraph::build_begin) -
XIOS/dev/dev_trunk_graph/src/filter/pass_through_filter.cpp
r1686 r1688 25 25 26 26 CWorkflowGraph::addNode(this->filterID, "Pass Through Filter\\n("+data[0]->field->getId()+")", 2, 1, 1, data[0]); 27 (*CWorkflowGraph::mapFilters_ptr_with_info)[this->filterID].distance = ++(data[0]->distance);27 (*CWorkflowGraph::mapFilters_ptr_with_info)[this->filterID].distance = data[0]->distance+1; 28 28 29 29 (*CWorkflowGraph::mapFilters_ptr_with_info)[this->filterID].attributes = this->field->record4graphXiosAttributes(); … … 39 39 40 40 data[0]->src_filterID=this->filterID; 41 data[0]->distance++; 41 42 42 43 } -
XIOS/dev/dev_trunk_graph/src/filter/source_filter.cpp
r1686 r1688 28 28 { 29 29 bool building_graph = this->tag ? packet->timestamp >= this->field->field_graph_start && packet->timestamp <= this->field->field_graph_end : false; 30 31 30 if(building_graph) 32 31 { -
XIOS/dev/dev_trunk_graph/src/filter/spatial_transform_filter.cpp
r1686 r1688 215 215 } 216 216 217 if(BG) packet->src_filterID=this->filterID; 218 if(BG) packet->distance=data[0]->distance+1; 219 packet->field = field; 220 217 221 return packet; 218 222 } -
XIOS/dev/dev_trunk_graph/src/node/field.cpp
r1686 r1688 1117 1117 TRY 1118 1118 { 1119 if (!isReferenceSolvedAndTransformed) solveAllEnabledFieldsAndTransform();1120 if (!isGridChecked) checkGridOfEnabledFields();1119 if (!isReferenceSolvedAndTransformed) solveAllEnabledFieldsAndTransform(); 1120 if (!isGridChecked) checkGridOfEnabledFields(); 1121 1121 1122 1122 const bool detectMissingValues = (!detect_missing_value.isEmpty() && !default_value.isEmpty() && detect_missing_value == true); … … 1234 1234 if (grid && grid != gridRef && grid->hasTransform()) 1235 1235 { 1236 std::pair<std::shared_ptr<CFilter>, std::shared_ptr<CFilter> > filters = CSpatialTransformFilter::buildFilterGraph(gc, gridRef, grid, detectMissingValues, defaultValue);1236 std::pair<std::shared_ptr<CFilter>, std::shared_ptr<CFilter> > filters = CSpatialTransformFilter::buildFilterGraph(gc, gridRef, grid, detectMissingValues, defaultValue); 1237 1237 1238 1238 filter->connectOutput(filters.first, 0); … … 1517 1517 CContext* context = CContext::getCurrent(); 1518 1518 1519 // Time filter_start;1520 // if(!build_workflow_graph_start.isEmpty() && buildWorkflowGraph) filter_start = context->calendar->getInitDate()+build_workflow_graph_start;1521 // else if(build_workflow_graph_start.isEmpty() && buildWorkflowGraph) filter_start = 0;1522 // else filter_start = -1;1523 1524 // Time filter_end;1525 // if(!build_workflow_graph_end.isEmpty() && buildWorkflowGraph) filter_end = context->calendar->getInitDate()+build_workflow_graph_end;1526 // else if(build_workflow_graph_end.isEmpty() && buildWorkflowGraph) filter_end = 9223372036854775807;1527 // else filter_end = -1;1528 1529 // filter_start = this->field_graph_start;1530 // filter_end = this->field_graph_end;1531 1532 // if(CXios::isClient) std::cout<<"getTemporalDataFilter field_id = "<<this->getId()<<" this->field_graph_start = "<<this->field_graph_start<<" this->field_graph_end = "<<this->field_graph_end<<std::endl;1533 1519 1534 1520 if (it == temporalDataFilters.end()) … … 1594 1580 bool buildWorkflowGraph = (!build_workflow_graph.isEmpty() && build_workflow_graph == true); 1595 1581 std::shared_ptr<CTemporalFilter> temporalFilter(new CTemporalFilter(gc, operation, 1596 1597 1582 CContext::getCurrent()->getCalendar()->getInitDate(), 1583 freq_op, freq_offset, outFreq, detectMissingValues)); 1598 1584 1599 1585 selfReferenceFilter->connectOutput(temporalFilter, 0);
Note: See TracChangeset
for help on using the changeset viewer.